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

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

Issue 212383002: Drop empty list :host() and :host-context(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « LayoutTests/fast/dom/shadow/host-pseudo-class-css-text-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGrammar.y
diff --git a/Source/core/css/CSSGrammar.y b/Source/core/css/CSSGrammar.y
index c5901b87d0e14ba83fab2ad64b725f9f0c6ab4b5..c88026806e621a1d73b80a2c5a6f1b9455d76aad 100644
--- a/Source/core/css/CSSGrammar.y
+++ b/Source/core/css/CSSGrammar.y
@@ -1468,16 +1468,6 @@ pseudo:
if (type != CSSSelector::PseudoHost)
YYERROR;
}
- // used by :host()
- | ':' HOSTFUNCTION maybe_space closing_parenthesis {
- $$ = parser->createFloatingSelector();
- $$->setMatch(CSSSelector::PseudoClass);
- parser->tokenToLowerCase($2);
- $$->setValue($2.atomicSubstring(0, $2.length() - 1));
- CSSSelector::PseudoType type = $$->pseudoType();
- if (type != CSSSelector::PseudoHost)
- YYERROR;
- }
| ':' HOSTFUNCTION selector_recovery closing_parenthesis {
YYERROR;
}
@@ -1492,15 +1482,6 @@ pseudo:
if (type != CSSSelector::PseudoHostContext)
YYERROR;
}
- | ':' HOSTCONTEXTFUNCTION maybe_space closing_parenthesis {
- $$ = parser->createFloatingSelector();
- $$->setMatch(CSSSelector::PseudoClass);
- parser->tokenToLowerCase($2);
- $$->setValue($2.atomicSubstring(0, $2.length() - 1));
- CSSSelector::PseudoType type = $$->pseudoType();
- if (type != CSSSelector::PseudoHostContext)
- YYERROR;
- }
| ':' HOSTCONTEXTFUNCTION selector_recovery closing_parenthesis {
YYERROR;
}
« no previous file with comments | « LayoutTests/fast/dom/shadow/host-pseudo-class-css-text-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698