changeset 794:a8c91036e116

fix minor issue in CSS optimization This brings down the number of CssSimpleSelector::match() calls from 816603 to 602787 on http://www.spiegel.de
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 21 Jan 2009 17:26:40 +0100
parents e28f327f0f8d
children 0d838b3dc1a6
files src/css.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Tue Jan 20 17:50:40 2009 +0100
+++ b/src/css.cc	Wed Jan 21 17:26:40 2009 +0100
@@ -93,7 +93,7 @@
             n = node;
 
             while (true) {
-               if (node == NULL || node->num < *notMatchingBefore) {
+               if (node == NULL || node->num <= *notMatchingBefore) {
                   *notMatchingBefore = n->num;
                   return false;
                }