summaryrefslogtreecommitdiff
path: root/src/doctree.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/doctree.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/doctree.hh')
-rw-r--r--src/doctree.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doctree.hh b/src/doctree.hh
index 97686e40..f74350b0 100644
--- a/src/doctree.hh
+++ b/src/doctree.hh
@@ -3,6 +3,7 @@
class DoctreeNode {
public:
+ int num; // unique ascending id
int depth;
int element;
const char *klass;