From 15341660edd56f09bd21ffe3bc0fa27687bc7bae Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 21 Jan 2009 17:26:40 +0100 Subject: fix minor issue in CSS optimization This brings down the number of CssSimpleSelector::match() calls from 816603 to 602787 on http://www.spiegel.de --- src/css.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/css.cc') 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; } -- cgit v1.2.3