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

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, 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/css/CSSKeyframeRule.h » ('j') | Source/core/css/CSSKeyframeRule.cpp » ('J')
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 %token HOST_SYM 133 %token HOST_SYM
134 %token CHARSET_SYM 134 %token CHARSET_SYM
135 %token NAMESPACE_SYM 135 %token NAMESPACE_SYM
136 %token VIEWPORT_RULE_SYM 136 %token VIEWPORT_RULE_SYM
137 %token INTERNAL_DECLS_SYM 137 %token INTERNAL_DECLS_SYM
138 %token INTERNAL_MEDIALIST_SYM 138 %token INTERNAL_MEDIALIST_SYM
139 %token INTERNAL_RULE_SYM 139 %token INTERNAL_RULE_SYM
140 %token INTERNAL_SELECTOR_SYM 140 %token INTERNAL_SELECTOR_SYM
141 %token INTERNAL_VALUE_SYM 141 %token INTERNAL_VALUE_SYM
142 %token INTERNAL_KEYFRAME_RULE_SYM 142 %token INTERNAL_KEYFRAME_RULE_SYM
143 %token INTERNAL_KEYFRAME_KEY_LIST_SYM
143 %token INTERNAL_SUPPORTS_CONDITION_SYM 144 %token INTERNAL_SUPPORTS_CONDITION_SYM
144 %token WEBKIT_KEYFRAMES_SYM 145 %token WEBKIT_KEYFRAMES_SYM
145 %token WEBKIT_REGION_RULE_SYM 146 %token WEBKIT_REGION_RULE_SYM
146 %token WEBKIT_FILTER_RULE_SYM 147 %token WEBKIT_FILTER_RULE_SYM
147 %token <marginBox> TOPLEFTCORNER_SYM 148 %token <marginBox> TOPLEFTCORNER_SYM
148 %token <marginBox> TOPLEFT_SYM 149 %token <marginBox> TOPLEFT_SYM
149 %token <marginBox> TOPCENTER_SYM 150 %token <marginBox> TOPCENTER_SYM
150 %token <marginBox> TOPRIGHT_SYM 151 %token <marginBox> TOPRIGHT_SYM
151 %token <marginBox> TOPRIGHTCORNER_SYM 152 %token <marginBox> TOPRIGHTCORNER_SYM
152 %token <marginBox> BOTTOMLEFTCORNER_SYM 153 %token <marginBox> BOTTOMLEFTCORNER_SYM
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 %% 329 %%
329 330
330 stylesheet: 331 stylesheet:
331 maybe_charset maybe_sgml rule_list 332 maybe_charset maybe_sgml rule_list
332 | internal_decls 333 | internal_decls
333 | internal_rule 334 | internal_rule
334 | internal_selector 335 | internal_selector
335 | internal_value 336 | internal_value
336 | internal_medialist 337 | internal_medialist
337 | internal_keyframe_rule 338 | internal_keyframe_rule
339 | internal_keyframe_key_list
338 | internal_supports_condition 340 | internal_supports_condition
339 ; 341 ;
340 342
341 internal_rule: 343 internal_rule:
342 INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF { 344 INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF {
343 parser->m_rule = $3; 345 parser->m_rule = $3;
344 } 346 }
345 ; 347 ;
346 348
347 internal_keyframe_rule: 349 internal_keyframe_rule:
348 INTERNAL_KEYFRAME_RULE_SYM maybe_space keyframe_rule maybe_space TOKEN_EOF { 350 INTERNAL_KEYFRAME_RULE_SYM maybe_space keyframe_rule maybe_space TOKEN_EOF {
349 parser->m_keyframe = $3; 351 parser->m_keyframe = $3;
350 } 352 }
351 ; 353 ;
352 354
355 internal_keyframe_key_list:
356 INTERNAL_KEYFRAME_KEY_LIST_SYM maybe_space key_list TOKEN_EOF {
357 parser->m_valueList = parser->sinkFloatingValueList($3);
358 }
359 ;
360
353 internal_decls: 361 internal_decls:
354 INTERNAL_DECLS_SYM maybe_space_before_declaration declaration_list TOKEN_EOF { 362 INTERNAL_DECLS_SYM maybe_space_before_declaration declaration_list TOKEN_EOF {
355 /* can be empty */ 363 /* can be empty */
356 } 364 }
357 ; 365 ;
358 366
359 internal_value: 367 internal_value:
360 INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF { 368 INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF {
361 parser->m_valueList = parser->sinkFloatingValueList($3); 369 parser->m_valueList = parser->sinkFloatingValueList($3);
362 int oldParsedProperties = parser->m_parsedProperties.size(); 370 int oldParsedProperties = parser->m_parsedProperties.size();
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 1870
1863 rule_error_recovery: 1871 rule_error_recovery:
1864 /* empty */ 1872 /* empty */
1865 | rule_error_recovery error 1873 | rule_error_recovery error
1866 | rule_error_recovery invalid_square_brackets_block 1874 | rule_error_recovery invalid_square_brackets_block
1867 | rule_error_recovery invalid_parentheses_block 1875 | rule_error_recovery invalid_parentheses_block
1868 ; 1876 ;
1869 1877
1870 %% 1878 %%
1871 1879
OLDNEW
« 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