Chromium Code Reviews| Index: Source/core/css/CSSGrammar.y.in |
| diff --git a/Source/core/css/CSSGrammar.y.in b/Source/core/css/CSSGrammar.y.in |
| index 9543cbead6f9f1da23567ec934cb740a2cb4b194..504f957f7ca25cf5c4737ef758058b3a14c6d313 100644 |
| --- a/Source/core/css/CSSGrammar.y.in |
| +++ b/Source/core/css/CSSGrammar.y.in |
| @@ -855,8 +855,13 @@ key: |
| $$.fValue = 0; |
| else if (str.equalIgnoringCase("to")) |
| $$.fValue = 100; |
| - else |
| + else { |
| + $$.unit = 0; |
| YYERROR; |
| + } |
| + } |
| + | error { |
| + $$.unit = 0; |
| } |
| ; |