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

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

Issue 13871007: Add CSS parser recovery from errors while parsing @-webkit-keyframes key values. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Brought the behavior closer to the spec, added another test Created 7 years, 8 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/css/webkit-keyframes-errors-expected.html ('k') | Source/WebCore/css/CSSParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/CSSGrammar.y.in
diff --git a/Source/WebCore/css/CSSGrammar.y.in b/Source/WebCore/css/CSSGrammar.y.in
index 9543cbead6f9f1da23567ec934cb740a2cb4b194..2706ace2cec3c038de053b9ee9d2cf47d9634ee8 100644
--- a/Source/WebCore/css/CSSGrammar.y.in
+++ b/Source/WebCore/css/CSSGrammar.y.in
@@ -855,8 +855,13 @@ key:
$$.fValue = 0;
else if (str.equalIgnoringCase("to"))
$$.fValue = 100;
- else
+ else {
+ $$.isInt = true;
hayato 2013/04/17 04:01:18 'isInt' looks confusing name since it is not a num
YYERROR;
+ }
+ }
+ | error {
+ $$.isInt = true;
}
;
« no previous file with comments | « LayoutTests/fast/css/webkit-keyframes-errors-expected.html ('k') | Source/WebCore/css/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698