Index: Source/core/css/CSSSelector.cpp |
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp |
index 68c594364ef0fac49dbaf2691d170e0a96f4567f..9041b7a324e3f82fd93056da9f267b9235aeea1c 100644 |
--- a/Source/core/css/CSSSelector.cpp |
+++ b/Source/core/css/CSSSelector.cpp |
@@ -641,7 +641,7 @@ String CSSSelector::selectorText(const String& rightSide) const |
break; |
case PseudoAny: { |
const CSSSelector* firstSubSelector = cs->selectorList()->first(); |
- for (const CSSSelector* subSelector = firstSubSelector; subSelector; subSelector = CSSSelectorList::next(subSelector)) { |
+ for (const CSSSelector* subSelector = firstSubSelector; subSelector; subSelector = CSSSelectorList::next(*subSelector)) { |
if (subSelector != firstSubSelector) |
str.append(','); |
str.append(subSelector->selectorText()); |
@@ -653,7 +653,7 @@ String CSSSelector::selectorText(const String& rightSide) const |
case PseudoAncestor: { |
if (cs->selectorList()) { |
const CSSSelector* firstSubSelector = cs->selectorList()->first(); |
- for (const CSSSelector* subSelector = firstSubSelector; subSelector; subSelector = CSSSelectorList::next(subSelector)) { |
+ for (const CSSSelector* subSelector = firstSubSelector; subSelector; subSelector = CSSSelectorList::next(*subSelector)) { |
if (subSelector != firstSubSelector) |
str.append(','); |
str.append(subSelector->selectorText()); |