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

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

Issue 662243003: Use ::-internal-media-controls* instead of ::-webkit-media-controls* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: introduce PseudoInternalCustomElement Created 6 years, 2 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/parser/BisonCSSParser-in.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSGrammar.y
diff --git a/Source/core/css/parser/CSSGrammar.y b/Source/core/css/parser/CSSGrammar.y
index ad8fe0322cb396b3c127c4d5227c0745214ab703..a73200f0242dc1c875342b123013900653b712be 100644
--- a/Source/core/css/parser/CSSGrammar.y
+++ b/Source/core/css/parser/CSSGrammar.y
@@ -1353,7 +1353,8 @@ pseudo:
parser->tokenToLowerCase($3);
$$->setValue($3);
CSSSelector::PseudoType type = $$->pseudoType();
- if (type == CSSSelector::PseudoUnknown) {
+ if (type == CSSSelector::PseudoUnknown ||
+ !parser->isSelectorAllowedInParsingMode(type)) {
parser->reportError($2, InvalidSelectorPseudoCSSError);
YYERROR;
}
@@ -1367,7 +1368,8 @@ pseudo:
$$->setValue($4);
// FIXME: This call is needed to force selector to compute the pseudoType early enough.
CSSSelector::PseudoType type = $$->pseudoType();
- if (type == CSSSelector::PseudoUnknown) {
+ if (type == CSSSelector::PseudoUnknown ||
+ !parser->isSelectorAllowedInParsingMode(type)) {
parser->reportError($3, InvalidSelectorPseudoCSSError);
YYERROR;
}
« no previous file with comments | « Source/core/css/parser/BisonCSSParser-in.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698