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

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

Issue 19037003: Re-use CSSParser logic to parse keyframe keys (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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 | « no previous file | Source/core/css/CSSKeyframeRule.h » ('j') | Source/core/css/CSSKeyframeRule.cpp » ('J')
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 b398b89a403e7d0e5475271af5d0478663815022..84c78f7c41cf0b5d0fd86fe2cae06da6f39b46ad 100644
--- a/Source/core/css/CSSGrammar.y.in
+++ b/Source/core/css/CSSGrammar.y.in
@@ -140,6 +140,7 @@ inline static CSSParserValue makeOperatorValue(int value)
%token INTERNAL_SELECTOR_SYM
%token INTERNAL_VALUE_SYM
%token INTERNAL_KEYFRAME_RULE_SYM
+%token INTERNAL_KEYFRAME_KEY_LIST_SYM
%token INTERNAL_SUPPORTS_CONDITION_SYM
%token WEBKIT_KEYFRAMES_SYM
%token WEBKIT_REGION_RULE_SYM
@@ -335,6 +336,7 @@ stylesheet:
| internal_value
| internal_medialist
| internal_keyframe_rule
+ | internal_keyframe_key_list
| internal_supports_condition
;
@@ -350,6 +352,12 @@ internal_keyframe_rule:
}
;
+internal_keyframe_key_list:
+ INTERNAL_KEYFRAME_KEY_LIST_SYM maybe_space key_list TOKEN_EOF {
+ parser->m_valueList = parser->sinkFloatingValueList($3);
+ }
+;
+
internal_decls:
INTERNAL_DECLS_SYM maybe_space_before_declaration declaration_list TOKEN_EOF {
/* can be empty */
« no previous file with comments | « no previous file | Source/core/css/CSSKeyframeRule.h » ('j') | Source/core/css/CSSKeyframeRule.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698