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

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

Issue 21151005: Implement ::content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 4 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/SelectorChecker.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SelectorFilter.cpp
diff --git a/Source/core/css/SelectorFilter.cpp b/Source/core/css/SelectorFilter.cpp
index 239bc459eafedd32aa94578a9085c93ad38c8c4d..2c3c7278f1e7185ef3e1a393f23f05d980d4d7ef 100644
--- a/Source/core/css/SelectorFilter.cpp
+++ b/Source/core/css/SelectorFilter.cpp
@@ -140,7 +140,7 @@ bool SelectorFilter::fastRejectSelector(const CSSSelector* selector) const
size_t remainingHashesToCheck = 4;
CSSSelector::Relation relation = selector->relation();
- bool relationIsForShadowDistributed = selector->relationIsForShadowDistributed();
+ bool relationIsAffectedByPseudoContent = selector->relationIsAffectedByPseudoContent();
// Skip the topmost selector. It is handled quickly by the rule hashes.
bool skipOverSubselectors = true;
@@ -164,7 +164,7 @@ bool SelectorFilter::fastRejectSelector(const CSSSelector* selector) const
break;
case CSSSelector::Descendant:
case CSSSelector::Child:
- if (relationIsForShadowDistributed) {
+ if (relationIsAffectedByPseudoContent) {
skipOverSubselectors = true;
break;
}
@@ -179,7 +179,7 @@ bool SelectorFilter::fastRejectSelector(const CSSSelector* selector) const
}
relation = selector->relation();
- relationIsForShadowDistributed = selector->relationIsForShadowDistributed();
+ relationIsAffectedByPseudoContent = selector->relationIsAffectedByPseudoContent();
}
return false;
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698