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; |