summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-21 17:26:40 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-21 17:26:40 +0100
commit15341660edd56f09bd21ffe3bc0fa27687bc7bae (patch)
tree8f5debfee58b6700e483490dd828b5b41db5eb89 /src/css.cc
parent86d65438a060f01c10cd62da0b3002471b189e9c (diff)
fix minor issue in CSS optimization
This brings down the number of CssSimpleSelector::match() calls from 816603 to 602787 on http://www.spiegel.de
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.cc b/src/css.cc
index aeea6cc8..9a681f6a 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -93,7 +93,7 @@ bool CssSelector::match (Doctree *docTree) {
n = node;
while (true) {
- if (node == NULL || node->num < *notMatchingBefore) {
+ if (node == NULL || node->num <= *notMatchingBefore) {
*notMatchingBefore = n->num;
return false;
}