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(n); if (++count > 10) break;