diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-06-27 10:50:14 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-06-27 10:50:14 +0000 |
commit | ea203a6dd8a241d33e4bd1a6b076006cac715776 (patch) | |
tree | 2d9865400039f23182e413e0354d239083c48538 /src/stylesheet.c | |
parent | e86173f4bf6e029af6ea0f1348c6b934a1b488f8 (diff) | |
download | libcss-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.c')
-rw-r--r-- | src/stylesheet.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index 20cc91f..eed4735 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -361,8 +361,6 @@ css_error css_stylesheet_register_import(css_stylesheet *parent, if (r->type == CSS_RULE_IMPORT && i->sheet == NULL) { i->sheet = import; - import->ownerRule = r; - return CSS_OK; } } |