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

Unified Diff: Source/core/css/CSSGrammar.y.in

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
Index: Source/core/css/CSSGrammar.y.in
diff --git a/Source/core/css/CSSGrammar.y.in b/Source/core/css/CSSGrammar.y.in
index adcd2ad93e2d82af194a4152ad84923b02f2b411..4ef806b423fb4d4ad2c92984a2619354c95c6f6b 100644
--- a/Source/core/css/CSSGrammar.y.in
+++ b/Source/core/css/CSSGrammar.y.in
@@ -1182,6 +1182,8 @@ selector:
while (end->tagHistory())
end = end->tagHistory();
end->setRelation(CSSSelector::Descendant);
+ if ($1->isContentPseudoElement())
+ end->setRelationIsAffectedByPseudoContent();
end->setTagHistory(parser->sinkFloatingSelector($1));
}
| selector combinator simple_selector {
@@ -1190,6 +1192,8 @@ selector:
while (end->tagHistory())
end = end->tagHistory();
end->setRelation($2);
+ if ($1->isContentPseudoElement())
+ end->setRelationIsAffectedByPseudoContent();
end->setTagHistory(parser->sinkFloatingSelector($1));
}
;

Powered by Google App Engine
This is Rietveld 408576698