diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-12-15 20:12:52 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-11-19 14:30:07 +0000 |
commit | 7cb09396a547709ad55a195af825fc8bb74607fd (patch) | |
tree | 804265e321aa1780d505a56a68e45fb11dd6d969 /src/select/select.h | |
parent | f198d30c40c9358e964aa273d9ff9779bffaa6ad (diff) | |
download | libcss-7cb09396a547709ad55a195af825fc8bb74607fd.tar.gz libcss-7cb09396a547709ad55a195af825fc8bb74607fd.tar.bz2 |
Optimisation: Bypass selection by sharing previous sibling's style.
Diffstat (limited to 'src/select/select.h')
-rw-r--r-- | src/select/select.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/select/select.h b/src/select/select.h index 254b095..96f4546 100644 --- a/src/select/select.h +++ b/src/select/select.h @@ -34,6 +34,13 @@ typedef struct prop_state { struct css_node_data { css_select_results partial; css_bloom *bloom; + enum { + CSS_NODE_FLAGS_NONE = 0, + CSS_NODE_FLAGS_HAS_HINTS = (1 << 0), + CSS_NODE_FLAGS_TAINT_PSEUDO_CLASS = (1 << 1), + CSS_NODE_FLAGS_TAINT_ATTRIBUTE = (1 << 2), + CSS_NODE_FLAGS_TAINT_SIBLING = (1 << 3), + } flags; }; /** |