diff src/styleengine.hh @ 763:df8153796f48

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.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Tue, 13 Jan 2009 09:02:41 +0100
parents dac3e759df92
children 816f3c5f9286
line wrap: on
line diff
--- a/src/styleengine.hh	Mon Jan 12 18:12:33 2009 +0100
+++ b/src/styleengine.hh	Tue Jan 13 09:02:41 2009 +0100
@@ -19,6 +19,7 @@
       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);