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

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

Issue 21151005: Implement ::content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 b398b89a403e7d0e5475271af5d0478663815022..9d35693268926d475d1e58399873baab2dbbcf5d 100644
--- a/Source/core/css/CSSGrammar.y.in
+++ b/Source/core/css/CSSGrammar.y.in
@@ -1183,6 +1183,8 @@ selector:
while (end->tagHistory())
end = end->tagHistory();
end->setRelation(CSSSelector::Descendant);
+ if ($1->isContentPseudoElement())
+ end->setRelationIsForShadowDistributed();
end->setTagHistory(parser->sinkFloatingSelector($1));
}
| selector combinator simple_selector {
@@ -1191,6 +1193,8 @@ selector:
while (end->tagHistory())
end = end->tagHistory();
end->setRelation($2);
+ if ($1->isContentPseudoElement())
+ end->setRelationIsForShadowDistributed();
end->setTagHistory(parser->sinkFloatingSelector($1));
}
;

Powered by Google App Engine
This is Rietveld 408576698