diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-09-05 19:38:43 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-09-05 19:38:43 +0000 |
commit | 36c3f02025027316c4e34bc41da44cb6b4a09754 (patch) | |
tree | cb5e8cbf40def548f2560c9cbd3f8246013423b4 /src/select/select.h | |
parent | 933a1b92130bc19e7d22f2adebfeb540d3b926d4 (diff) | |
download | libcss-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.h | 5 |
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; |