From 7cb09396a547709ad55a195af825fc8bb74607fd Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 15 Dec 2015 20:12:52 +0000 Subject: Optimisation: Bypass selection by sharing previous sibling's style. --- src/select/select.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/select/select.h') 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; }; /** -- cgit v1.2.3