Index: third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSSelectorList.cpp b/third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
index 114fb8460e58dd0739288b723d1235976e1d1985..7cba4aa16fd6f98ed6f3bddca2ac136da9ffb062 100644 |
--- a/third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSSelectorList.cpp |
@@ -161,13 +161,20 @@ bool CSSSelectorList::selectorsNeedNamespaceResolution() |
}, this); |
} |
-bool CSSSelectorList::selectorHasShadowDistributed(size_t index) const |
+bool CSSSelectorList::selectorHasContentPseudo(size_t index) const |
{ |
return forEachTagSelector([](const CSSSelector& selector) -> bool { |
return selector.relationIsAffectedByPseudoContent(); |
}, selectorAt(index)); |
} |
+bool CSSSelectorList::selectorHasSlottedPseudo(size_t index) const |
+{ |
+ return forEachTagSelector([](const CSSSelector& selector) -> bool { |
+ return selector.pseudoType() == CSSSelector::PseudoSlotted; |
+ }, selectorAt(index)); |
+} |
+ |
bool CSSSelectorList::selectorUsesDeepCombinatorOrShadowPseudo(size_t index) const |
{ |
return forEachTagSelector([](const CSSSelector& selector) -> bool { |