| Index: Source/core/html/shadow/HTMLContentElement.cpp
|
| diff --git a/Source/core/html/shadow/HTMLContentElement.cpp b/Source/core/html/shadow/HTMLContentElement.cpp
|
| index df21ad5df56908058a3204fba97f41b45261fbfc..78bef2994b26d758023a8bf04206815e96820128 100644
|
| --- a/Source/core/html/shadow/HTMLContentElement.cpp
|
| +++ b/Source/core/html/shadow/HTMLContentElement.cpp
|
| @@ -91,7 +91,7 @@ bool HTMLContentElement::validateSelect() const
|
| if (!m_selectorList.isValid())
|
| return false;
|
|
|
| - for (const CSSSelector* selector = m_selectorList.first(); selector; selector = m_selectorList.next(selector)) {
|
| + for (const CSSSelector* selector = m_selectorList.first(); selector; selector = m_selectorList.next(*selector)) {
|
| if (!selector->isCompound())
|
| return false;
|
| }
|
| @@ -99,7 +99,7 @@ bool HTMLContentElement::validateSelect() const
|
| return true;
|
| }
|
|
|
| -static inline bool checkOneSelector(const CSSSelector* selector, const Vector<Node*, 32>& siblings, int nth)
|
| +static inline bool checkOneSelector(const CSSSelector& selector, const Vector<Node*, 32>& siblings, int nth)
|
| {
|
| Element* element = toElement(siblings[nth]);
|
| SelectorChecker selectorChecker(element->document(), SelectorChecker::CollectingCSSRules);
|
| @@ -110,8 +110,8 @@ static inline bool checkOneSelector(const CSSSelector* selector, const Vector<No
|
|
|
| bool HTMLContentElement::matchSelector(const Vector<Node*, 32>& siblings, int nth) const
|
| {
|
| - for (const CSSSelector* selector = selectorList().first(); selector; selector = CSSSelectorList::next(selector)) {
|
| - if (checkOneSelector(selector, siblings, nth))
|
| + for (const CSSSelector* selector = selectorList().first(); selector; selector = CSSSelectorList::next(*selector)) {
|
| + if (checkOneSelector(*selector, siblings, nth))
|
| return true;
|
| }
|
| return false;
|
|
|