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

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

Issue 2532813002: Matching part for >>> (shadow-piercing descendant combinator). (Closed)
Patch Set: 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 89d130750e122e0511d45c2ec8489e672408c01d..cebe0b2e4f24475d0a5e485371ec54f25700d74f 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -969,6 +969,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