From ea203a6dd8a241d33e4bd1a6b076006cac715776 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 27 Jun 2010 10:50:14 +0000 Subject: 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 --- src/stylesheet.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/stylesheet.h') 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 */ -- cgit v1.2.3