summaryrefslogtreecommitdiff
path: root/src/select/select.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-05 19:38:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-05 19:38:43 +0000
commit36c3f02025027316c4e34bc41da44cb6b4a09754 (patch)
treecb5e8cbf40def548f2560c9cbd3f8246013423b4 /src/select/select.h
parent933a1b92130bc19e7d22f2adebfeb540d3b926d4 (diff)
downloadlibcss-36c3f02025027316c4e34bc41da44cb6b4a09754.tar.gz
libcss-36c3f02025027316c4e34bc41da44cb6b4a09754.tar.bz2
Compute node name, id, and classes once, instead of once per stylesheet
svn path=/trunk/libcss/; revision=12743
Diffstat (limited to 'src/select/select.h')
-rw-r--r--src/select/select.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/select/select.h b/src/select/select.h
index 3abfce3..3cdeae3 100644
--- a/src/select/select.h
+++ b/src/select/select.h
@@ -42,6 +42,11 @@ typedef struct css_select_state {
css_origin current_origin; /* Origin of current sheet */
uint32_t current_specificity; /* Specificity of current rule */
+ css_qname element; /* Element we're selecting for */
+ lwc_string *id; /* Node id, if any */
+ lwc_string **classes; /* Node classes, if any */
+ uint32_t n_classes; /* Number of classes */
+
prop_state props[CSS_N_PROPERTIES][CSS_PSEUDO_ELEMENT_COUNT];
} css_select_state;