diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-21 17:26:40 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-21 17:26:40 +0100 |
commit | 15341660edd56f09bd21ffe3bc0fa27687bc7bae (patch) | |
tree | 8f5debfee58b6700e483490dd828b5b41db5eb89 /src/css.cc | |
parent | 86d65438a060f01c10cd62da0b3002471b189e9c (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.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |