diff src/doctree.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 145b8a4d65b3
children a913df1621ac
line wrap: on
line diff
--- a/src/doctree.hh	Mon Jan 12 18:12:33 2009 +0100
+++ b/src/doctree.hh	Tue Jan 13 09:02:41 2009 +0100
@@ -3,6 +3,7 @@
 
 class DoctreeNode {
    public:
+      int num; // unique ascending id
       int depth;
       int element;
       const char *klass;