diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-11-22 12:04:43 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-11-19 14:30:07 +0000 |
commit | f3b877ef70858a39846f2c206482703cd395d7d6 (patch) | |
tree | f01c45584bfb968dfffaee2500b93fe7d3d9ed8c /src/select/select.h | |
parent | ddf46d2a7ef13a64ec63eb4845c982e0f713d950 (diff) | |
download | libcss-f3b877ef70858a39846f2c206482703cd395d7d6.tar.gz libcss-f3b877ef70858a39846f2c206482703cd395d7d6.tar.bz2 |
Allow more than just bloom to be stored on nodes.
We now have a css_node_data struct which is sored on nodes.
It currently contians just the bloom filter.
Diffstat (limited to 'src/select/select.h')
-rw-r--r-- | src/select/select.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/select/select.h b/src/select/select.h index fad86ac..196914d 100644 --- a/src/select/select.h +++ b/src/select/select.h @@ -31,6 +31,10 @@ typedef struct prop_state { inherit : 1; /* Property is set to inherit */ } prop_state; +struct css_node_data { + css_bloom *bloom; +}; + /** * Selection state */ @@ -58,7 +62,7 @@ typedef struct css_select_state { reject_item reject_cache[128]; /* Reject cache (filled from end) */ reject_item *next_reject; /* Next free slot in reject cache */ - const css_bloom *bloom; /* Bloom filter */ + struct css_node_data *node_data; /* Data we'll store on node */ prop_state props[CSS_N_PROPERTIES][CSS_PSEUDO_ELEMENT_COUNT]; } css_select_state; |