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

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

Issue 1565263003: Implement CSS parser part for ::slotted pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix layout test. Created 4 years, 11 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/CSSSelectorList.h ('k') | third_party/WebKit/Source/core/css/RuleSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelectorList.h ('k') | third_party/WebKit/Source/core/css/RuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698