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

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

Issue 187353003: Implement /content/ combinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing 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
Index: Source/core/css/CSSGrammar.y
diff --git a/Source/core/css/CSSGrammar.y b/Source/core/css/CSSGrammar.y
index a453e5be6f546664481a872c5bc10cae982670a4..c913d2086868e196601fbdd696ca0cf752545d01 100644
--- a/Source/core/css/CSSGrammar.y
+++ b/Source/core/css/CSSGrammar.y
@@ -1055,6 +1055,8 @@ combinator:
$$ = CSSSelector::ShadowAll;
else if ($2.equalIgnoringCase("shadow-deep"))
$$ = CSSSelector::ShadowDeep;
+ else if ($2.equalIgnoringCase("content"))
+ $$ = CSSSelector::ShadowContent;
else
YYERROR;
}
@@ -1139,8 +1141,6 @@ 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 {
@@ -1149,8 +1149,6 @@ 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