Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQuery.cpp

Issue 1796573005: Do not show deprecation message for ::shadow and /deep/ on querySelector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix layout test expectation Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorChecker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698