[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/css
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2010-11-15 0:15:06
Message-ID: 20101115001506.AB354AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1197136 by carewolf:

Fixing typo from refactoring. This typo made it both slower and less helpful that intended

 M  +2 -2      cssstyleselector.cpp  


--- trunk/KDE/kdelibs/khtml/css/cssstyleselector.cpp #1197135:1197136
@@ -549,9 +549,9 @@
     if (!element) return 0;
     // Check previous siblings.
     unsigned count = 0;
-    NodeImpl* n;
+    NodeImpl* n = element;
     do {
-        for (n = element->previousSibling(); n && !n->isElementNode(); n = n->previousSibling());
+        for (n = n->previousSibling(); n && !n->isElementNode(); n = n->previousSibling());
         if (!n) break;
         ElementImpl *e = static_cast<ElementImpl*>(n);
         if (++count > 10) break;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic