summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-06-27 10:50:14 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-06-27 10:50:14 +0000
commitea203a6dd8a241d33e4bd1a6b076006cac715776 (patch)
tree2d9865400039f23182e413e0354d239083c48538 /src/stylesheet.h
parente86173f4bf6e029af6ea0f1348c6b934a1b488f8 (diff)
downloadlibcss-ea203a6dd8a241d33e4bd1a6b076006cac715776.tar.gz
libcss-ea203a6dd8a241d33e4bd1a6b076006cac715776.tar.bz2
Remove ownerNode and ownerRule fields from stylesheet objects.
These prevent stylesheets being used in multiple contexts simultaneously. Their values can be inferred from the context in which the stylesheet is used. Replace use of ownerRule to backtrack in style selection with a (fixed-size) stack of rules to process. This prevents crashes when a sheet that was previously imported somewhere is reused as a top-level sheet. svn path=/trunk/libcss/; revision=10581
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index b708257..2c6caac 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -157,9 +157,6 @@ struct css_stylesheet {
char *url; /**< URL of this sheet */
char *title; /**< Title of this sheet */
- void *ownerNode; /**< Owning node in document */
- css_rule *ownerRule; /**< Owning rule in parent */
-
css_language_level level; /**< Language level of sheet */
css_parser *parser; /**< Core parser for sheet */
void *parser_frontend; /**< Frontend parser */