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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/css/CSSKeyframeRule.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2012 Intel Corporation. All rights reserved. 6 * Copyright (C) 2012 Intel Corporation. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 %token HOST_SYM 134 %token HOST_SYM
135 %token CHARSET_SYM 135 %token CHARSET_SYM
136 %token NAMESPACE_SYM 136 %token NAMESPACE_SYM
137 %token VIEWPORT_RULE_SYM 137 %token VIEWPORT_RULE_SYM
138 %token INTERNAL_DECLS_SYM 138 %token INTERNAL_DECLS_SYM
139 %token INTERNAL_MEDIALIST_SYM 139 %token INTERNAL_MEDIALIST_SYM
140 %token INTERNAL_RULE_SYM 140 %token INTERNAL_RULE_SYM
141 %token INTERNAL_SELECTOR_SYM 141 %token INTERNAL_SELECTOR_SYM
142 %token INTERNAL_VALUE_SYM 142 %token INTERNAL_VALUE_SYM
143 %token INTERNAL_KEYFRAME_RULE_SYM 143 %token INTERNAL_KEYFRAME_RULE_SYM
144 %token INTERNAL_KEYFRAME_KEY_LIST_SYM
144 %token INTERNAL_SUPPORTS_CONDITION_SYM 145 %token INTERNAL_SUPPORTS_CONDITION_SYM
145 %token KEYFRAMES_SYM 146 %token KEYFRAMES_SYM
146 %token WEBKIT_KEYFRAMES_SYM 147 %token WEBKIT_KEYFRAMES_SYM
147 %token WEBKIT_REGION_RULE_SYM 148 %token WEBKIT_REGION_RULE_SYM
148 %token WEBKIT_FILTER_RULE_SYM 149 %token WEBKIT_FILTER_RULE_SYM
149 %token <marginBox> TOPLEFTCORNER_SYM 150 %token <marginBox> TOPLEFTCORNER_SYM
150 %token <marginBox> TOPLEFT_SYM 151 %token <marginBox> TOPLEFT_SYM
151 %token <marginBox> TOPCENTER_SYM 152 %token <marginBox> TOPCENTER_SYM
152 %token <marginBox> TOPRIGHT_SYM 153 %token <marginBox> TOPRIGHT_SYM
153 %token <marginBox> TOPRIGHTCORNER_SYM 154 %token <marginBox> TOPRIGHTCORNER_SYM
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 %% 333 %%
333 334
334 stylesheet: 335 stylesheet:
335 maybe_charset maybe_sgml rule_list 336 maybe_charset maybe_sgml rule_list
336 | internal_decls 337 | internal_decls
337 | internal_rule 338 | internal_rule
338 | internal_selector 339 | internal_selector
339 | internal_value 340 | internal_value
340 | internal_medialist 341 | internal_medialist
341 | internal_keyframe_rule 342 | internal_keyframe_rule
343 | internal_keyframe_key_list
342 | internal_supports_condition 344 | internal_supports_condition
343 ; 345 ;
344 346
345 internal_rule: 347 internal_rule:
346 INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF { 348 INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF {
347 parser->m_rule = $3; 349 parser->m_rule = $3;
348 } 350 }
349 ; 351 ;
350 352
351 internal_keyframe_rule: 353 internal_keyframe_rule:
352 INTERNAL_KEYFRAME_RULE_SYM maybe_space keyframe_rule maybe_space TOKEN_EOF { 354 INTERNAL_KEYFRAME_RULE_SYM maybe_space keyframe_rule maybe_space TOKEN_EOF {
353 parser->m_keyframe = $3; 355 parser->m_keyframe = $3;
354 } 356 }
355 ; 357 ;
356 358
359 internal_keyframe_key_list:
360 INTERNAL_KEYFRAME_KEY_LIST_SYM maybe_space key_list TOKEN_EOF {
361 parser->m_valueList = parser->sinkFloatingValueList($3);
362 }
363 ;
364
357 internal_decls: 365 internal_decls:
358 INTERNAL_DECLS_SYM maybe_space_before_declaration declaration_list TOKEN_EOF { 366 INTERNAL_DECLS_SYM maybe_space_before_declaration declaration_list TOKEN_EOF {
359 /* can be empty */ 367 /* can be empty */
360 } 368 }
361 ; 369 ;
362 370
363 internal_value: 371 internal_value:
364 INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF { 372 INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF {
365 parser->m_valueList = parser->sinkFloatingValueList($3); 373 parser->m_valueList = parser->sinkFloatingValueList($3);
366 int oldParsedProperties = parser->m_parsedProperties.size(); 374 int oldParsedProperties = parser->m_parsedProperties.size();
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 1922
1915 rule_error_recovery: 1923 rule_error_recovery:
1916 /* empty */ 1924 /* empty */
1917 | rule_error_recovery error 1925 | rule_error_recovery error
1918 | rule_error_recovery invalid_square_brackets_block 1926 | rule_error_recovery invalid_square_brackets_block
1919 | rule_error_recovery invalid_parentheses_block 1927 | rule_error_recovery invalid_parentheses_block
1920 ; 1928 ;
1921 1929
1922 %% 1930 %%
1923 1931
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSKeyframeRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698