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

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

Issue 210713002: Implement ::shadow pseudo element and replace /shadow/ with ::shadow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 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 | « Source/core/css/CSSSelectorList.h ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSSelectorList.cpp
diff --git a/Source/core/css/CSSSelectorList.cpp b/Source/core/css/CSSSelectorList.cpp
index bef8f1ef7259811e3292378d1d1f42838e2d2eb8..16b1bc2396db4b86c091e48d9c447df996e68d1a 100644
--- a/Source/core/css/CSSSelectorList.cpp
+++ b/Source/core/css/CSSSelectorList.cpp
@@ -182,17 +182,17 @@ bool CSSSelectorList::hasShadowDistributedAt(size_t index) const
return forEachTagSelector(functor, selectorAt(index));
}
-class SelectorHasCombinatorCrossingTreeBoundary {
+class SelectorCrossesTreeScopes {
public:
bool operator()(const CSSSelector& selector)
{
- return selector.relation() == CSSSelector::Shadow || selector.relation() == CSSSelector::ShadowDeep;
+ return selector.relation() == CSSSelector::ShadowDeep || selector.isShadowPseudoElement();
}
};
-bool CSSSelectorList::hasCombinatorCrossingTreeBoundaryAt(size_t index) const
+bool CSSSelectorList::selectorCrossesTreeScopes(size_t index) const
{
- SelectorHasCombinatorCrossingTreeBoundary functor;
+ SelectorCrossesTreeScopes functor;
return forEachTagSelector(functor, selectorAt(index));
}
« no previous file with comments | « Source/core/css/CSSSelectorList.h ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698