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

Side by Side Diff: Source/core/css/parser/CSSGrammar.y

Issue 559903002: Remove RuntimeEnabledFeatures flag MediaQueryParser (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 %{ 1 %{
2 2
3 /* 3 /*
4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved.
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2012 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012 Intel Corporation. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 %token IMPORT_SYM 182 %token IMPORT_SYM
183 %token PAGE_SYM 183 %token PAGE_SYM
184 %token MEDIA_SYM 184 %token MEDIA_SYM
185 %token SUPPORTS_SYM 185 %token SUPPORTS_SYM
186 %token FONT_FACE_SYM 186 %token FONT_FACE_SYM
187 %token CHARSET_SYM 187 %token CHARSET_SYM
188 %token NAMESPACE_SYM 188 %token NAMESPACE_SYM
189 %token VIEWPORT_RULE_SYM 189 %token VIEWPORT_RULE_SYM
190 %token INTERNAL_DECLS_SYM 190 %token INTERNAL_DECLS_SYM
191 %token INTERNAL_MEDIALIST_SYM
192 %token INTERNAL_RULE_SYM 191 %token INTERNAL_RULE_SYM
193 %token INTERNAL_SELECTOR_SYM 192 %token INTERNAL_SELECTOR_SYM
194 %token INTERNAL_VALUE_SYM 193 %token INTERNAL_VALUE_SYM
195 %token INTERNAL_KEYFRAME_RULE_SYM 194 %token INTERNAL_KEYFRAME_RULE_SYM
196 %token INTERNAL_KEYFRAME_KEY_LIST_SYM 195 %token INTERNAL_KEYFRAME_KEY_LIST_SYM
197 %token INTERNAL_SUPPORTS_CONDITION_SYM 196 %token INTERNAL_SUPPORTS_CONDITION_SYM
198 %token KEYFRAMES_SYM 197 %token KEYFRAMES_SYM
199 %token WEBKIT_KEYFRAMES_SYM 198 %token WEBKIT_KEYFRAMES_SYM
200 %token <marginBox> TOPLEFTCORNER_SYM 199 %token <marginBox> TOPLEFTCORNER_SYM
201 %token <marginBox> TOPLEFT_SYM 200 %token <marginBox> TOPLEFT_SYM
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 %type <value> track_names_list 372 %type <value> track_names_list
374 373
375 %% 374 %%
376 375
377 stylesheet: 376 stylesheet:
378 maybe_charset maybe_sgml rule_list 377 maybe_charset maybe_sgml rule_list
379 | internal_decls 378 | internal_decls
380 | internal_rule 379 | internal_rule
381 | internal_selector 380 | internal_selector
382 | internal_value 381 | internal_value
383 | internal_medialist
384 | internal_keyframe_rule 382 | internal_keyframe_rule
385 | internal_keyframe_key_list 383 | internal_keyframe_key_list
386 | internal_supports_condition 384 | internal_supports_condition
387 ; 385 ;
388 386
389 internal_rule: 387 internal_rule:
390 INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF { 388 INTERNAL_RULE_SYM maybe_space valid_rule maybe_space TOKEN_EOF {
391 parser->m_rule = $3; 389 parser->m_rule = $3;
392 } 390 }
393 ; 391 ;
(...skipping 19 matching lines...) Expand all
413 internal_value: 411 internal_value:
414 INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF { 412 INTERNAL_VALUE_SYM maybe_space expr TOKEN_EOF {
415 parser->m_valueList = parser->sinkFloatingValueList($3); 413 parser->m_valueList = parser->sinkFloatingValueList($3);
416 int oldParsedProperties = parser->m_parsedProperties.size(); 414 int oldParsedProperties = parser->m_parsedProperties.size();
417 if (!parser->parseValue(parser->m_id, parser->m_important)) 415 if (!parser->parseValue(parser->m_id, parser->m_important))
418 parser->rollbackLastProperties(parser->m_parsedProperties.size() - o ldParsedProperties); 416 parser->rollbackLastProperties(parser->m_parsedProperties.size() - o ldParsedProperties);
419 parser->m_valueList = nullptr; 417 parser->m_valueList = nullptr;
420 } 418 }
421 ; 419 ;
422 420
423 internal_medialist:
424 INTERNAL_MEDIALIST_SYM maybe_space location_label maybe_media_list TOKEN_EOF {
425 parser->m_mediaList = $4;
426 }
427 ;
428
429 internal_selector: 421 internal_selector:
430 INTERNAL_SELECTOR_SYM maybe_space selector_list TOKEN_EOF { 422 INTERNAL_SELECTOR_SYM maybe_space selector_list TOKEN_EOF {
431 if (parser->m_selectorListForParseSelector) 423 if (parser->m_selectorListForParseSelector)
432 parser->m_selectorListForParseSelector->adoptSelectorVector(*$3); 424 parser->m_selectorListForParseSelector->adoptSelectorVector(*$3);
433 } 425 }
434 ; 426 ;
435 427
436 internal_supports_condition: 428 internal_supports_condition:
437 INTERNAL_SUPPORTS_CONDITION_SYM maybe_space supports_condition TOKEN_EOF { 429 INTERNAL_SUPPORTS_CONDITION_SYM maybe_space supports_condition TOKEN_EOF {
438 parser->m_supportsCondition = $3; 430 parser->m_supportsCondition = $3;
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1841 ; 1833 ;
1842 1834
1843 rule_error_recovery: 1835 rule_error_recovery:
1844 /* empty */ 1836 /* empty */
1845 | rule_error_recovery error 1837 | rule_error_recovery error
1846 | rule_error_recovery invalid_square_brackets_block 1838 | rule_error_recovery invalid_square_brackets_block
1847 | rule_error_recovery invalid_parentheses_block 1839 | rule_error_recovery invalid_parentheses_block
1848 ; 1840 ;
1849 1841
1850 %% 1842 %%
OLDNEW
« no previous file with comments | « Source/core/css/parser/BisonCSSParser-in.cpp ('k') | Source/core/css/parser/CSSTokenizer-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698