summaryrefslogtreecommitdiff
path: root/src/styleengine.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-13 09:02:41 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-13 09:02:41 +0100
commitc510c7315258501f7f43902589203b06fbc72b9a (patch)
tree404c6a20cf323dd582e3ddf4bb29e56ab34d08fc /src/styleengine.hh
parent1b38c3eeac1bb16030323cb68859adb00bf98004 (diff)
initial implementation of a CSS selector matching optimization
The idea is to avoid repeated checks of CssSimpleSelector against the same part of the doctree. E.g .navigation * { background-color:green } Would result in checking for class="navigation" all the way down to the document root for all elements. The optimization shortcuts this, for parts of the doctree that have been checked before.
Diffstat (limited to 'src/styleengine.hh')
-rw-r--r--src/styleengine.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/styleengine.hh b/src/styleengine.hh
index d063fb27..9669ccf0 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -19,6 +19,7 @@ class StyleEngine : public Doctree {
dw::core::Layout *layout;
lout::misc::SimpleVector <Node> *stack;
CssContext *cssContext;
+ int num;
dw::core::style::Style *style0 (CssPropertyList *nonCssHints = NULL);
dw::core::style::Style *wordStyle0 (CssPropertyList *nonCssHints = NULL);