| 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 4c4c0aa74fe0b2d90728dbf70d775c76ac8c76e6..449bf2b3b802b1b2c2ee0614b12dd84a72ed50ec 100644
|
| --- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| @@ -122,6 +122,7 @@ inline bool SelectorDataList::selectorMatches(const CSSSelector& selector, Eleme
|
| {
|
| SelectorChecker::Init init;
|
| init.mode = SelectorChecker::QueryingRules;
|
| + init.isQuerySelector = true;
|
| SelectorChecker checker(init);
|
| SelectorChecker::SelectorCheckingContext context(&element, SelectorChecker::VisitedMatchDisabled);
|
| context.selector = &selector;
|
| @@ -148,7 +149,6 @@ Element* SelectorDataList::closest(Element& targetElement) const
|
| unsigned selectorCount = m_selectors.size();
|
| if (!selectorCount)
|
| return nullptr;
|
| -
|
| if (m_needsUpdatedDistribution)
|
| targetElement.updateDistribution();
|
|
|
|
|