Chromium Code Reviews

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

Issue 16208004: No need to store invalid media queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | Source/core/css/MediaList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGrammar.y.in
diff --git a/Source/core/css/CSSGrammar.y.in b/Source/core/css/CSSGrammar.y.in
index 8908341a37a703342d5213d4593813ddb7b94386..7e8d4ecdffb586471b8555f0251fd9dcab23c495 100644
--- a/Source/core/css/CSSGrammar.y.in
+++ b/Source/core/css/CSSGrammar.y.in
@@ -566,6 +566,8 @@ media_query_exp:
'(' maybe_space IDENT maybe_space maybe_media_value closing_parenthesis maybe_space {
parser->tokenToLowerCase($3);
$$ = parser->createFloatingMediaQueryExp($3, $5);
+ if (!$$)
+ YYERROR;
}
| '(' error error_recovery closing_parenthesis {
YYERROR;
« no previous file with comments | « no previous file | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine