| Index: third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| index bfc3d433530a2a75167334d1910c34102ddf14d4..d89ba13bb96443b09d16a31aa64c3cf231fb0466 100644
|
| --- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| @@ -113,13 +113,12 @@ void SelectorDataList::initialize(const CSSSelectorList& selectorList)
|
| m_usesDeepCombinatorOrShadowPseudo = false;
|
| m_needsUpdatedDistribution = false;
|
| m_selectors.reserveInitialCapacity(selectorCount);
|
| - unsigned index = 0;
|
| - for (const CSSSelector* selector = selectorList.first(); selector; selector = CSSSelectorList::next(*selector), ++index) {
|
| + for (const CSSSelector* selector = selectorList.first(); selector; selector = CSSSelectorList::next(*selector)) {
|
| if (selector->matchesPseudoElement())
|
| continue;
|
| m_selectors.uncheckedAppend(selector);
|
| - m_usesDeepCombinatorOrShadowPseudo |= selectorList.selectorUsesDeepCombinatorOrShadowPseudo(index);
|
| - m_needsUpdatedDistribution |= selectorList.selectorNeedsUpdatedDistribution(index);
|
| + m_usesDeepCombinatorOrShadowPseudo |= selector->hasDeepCombinatorOrShadowPseudo();
|
| + m_needsUpdatedDistribution |= selector->needsUpdatedDistribution();
|
| }
|
| }
|
|
|
|
|