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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.cpp

Issue 2496123002: Matching part for >>> (shadow-piercing descendant combinator). (Closed)
Patch Set: Update comment as Rune suggested. Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/css/CSSSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
index 59e7564bc169219b3efadc045317d1c74a7c6daa..54081a9f0dd469f35aff879b381a16a7a1374f67 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -971,6 +971,7 @@ bool CSSSelector::hasDeepCombinatorOrShadowPseudo() const {
return forEachTagHistory(
[](const CSSSelector& selector) -> bool {
return selector.relation() == CSSSelector::ShadowDeep ||
+ selector.relation() == CSSSelector::ShadowPiercingDescendant ||
selector.getPseudoType() == CSSSelector::PseudoShadow;
},
*this);

Powered by Google App Engine
This is Rietveld 408576698