| OLD | NEW |
| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 %token WEBKIT_KEYFRAME_RULE_SYM | 137 %token WEBKIT_KEYFRAME_RULE_SYM |
| 138 %token WEBKIT_KEYFRAMES_SYM | 138 %token WEBKIT_KEYFRAMES_SYM |
| 139 %token WEBKIT_VALUE_SYM | 139 %token WEBKIT_VALUE_SYM |
| 140 %token WEBKIT_MEDIAQUERY_SYM | 140 %token WEBKIT_MEDIAQUERY_SYM |
| 141 %token WEBKIT_SELECTOR_SYM | 141 %token WEBKIT_SELECTOR_SYM |
| 142 %token WEBKIT_REGION_RULE_SYM | 142 %token WEBKIT_REGION_RULE_SYM |
| 143 %token WEBKIT_VIEWPORT_RULE_SYM | 143 %token WEBKIT_VIEWPORT_RULE_SYM |
| 144 #if ENABLE_CSS3_CONDITIONAL_RULES | 144 #if ENABLE_CSS3_CONDITIONAL_RULES |
| 145 %token WEBKIT_SUPPORTS_CONDITION_SYM | 145 %token WEBKIT_SUPPORTS_CONDITION_SYM |
| 146 #endif | 146 #endif |
| 147 #if ENABLE_CSS_SHADERS | |
| 148 %token WEBKIT_FILTER_RULE_SYM | 147 %token WEBKIT_FILTER_RULE_SYM |
| 149 #endif | |
| 150 %token <marginBox> TOPLEFTCORNER_SYM | 148 %token <marginBox> TOPLEFTCORNER_SYM |
| 151 %token <marginBox> TOPLEFT_SYM | 149 %token <marginBox> TOPLEFT_SYM |
| 152 %token <marginBox> TOPCENTER_SYM | 150 %token <marginBox> TOPCENTER_SYM |
| 153 %token <marginBox> TOPRIGHT_SYM | 151 %token <marginBox> TOPRIGHT_SYM |
| 154 %token <marginBox> TOPRIGHTCORNER_SYM | 152 %token <marginBox> TOPRIGHTCORNER_SYM |
| 155 %token <marginBox> BOTTOMLEFTCORNER_SYM | 153 %token <marginBox> BOTTOMLEFTCORNER_SYM |
| 156 %token <marginBox> BOTTOMLEFT_SYM | 154 %token <marginBox> BOTTOMLEFT_SYM |
| 157 %token <marginBox> BOTTOMCENTER_SYM | 155 %token <marginBox> BOTTOMCENTER_SYM |
| 158 %token <marginBox> BOTTOMRIGHT_SYM | 156 %token <marginBox> BOTTOMRIGHT_SYM |
| 159 %token <marginBox> BOTTOMRIGHTCORNER_SYM | 157 %token <marginBox> BOTTOMRIGHTCORNER_SYM |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 %type <ruleList> region_block_rule_list | 245 %type <ruleList> region_block_rule_list |
| 248 %type <rule> block_rule | 246 %type <rule> block_rule |
| 249 %type <rule> block_valid_rule | 247 %type <rule> block_valid_rule |
| 250 %type <rule> region | 248 %type <rule> region |
| 251 #if ENABLE_CSS3_CONDITIONAL_RULES | 249 #if ENABLE_CSS3_CONDITIONAL_RULES |
| 252 %type <rule> supports | 250 %type <rule> supports |
| 253 #endif | 251 #endif |
| 254 #if ENABLE_CSS_DEVICE_ADAPTATION | 252 #if ENABLE_CSS_DEVICE_ADAPTATION |
| 255 %type <rule> viewport | 253 %type <rule> viewport |
| 256 #endif | 254 #endif |
| 257 #if ENABLE_CSS_SHADERS | |
| 258 %type <rule> filter | 255 %type <rule> filter |
| 259 #endif | |
| 260 | 256 |
| 261 %type <string> maybe_ns_prefix | 257 %type <string> maybe_ns_prefix |
| 262 | 258 |
| 263 %type <string> namespace_selector | 259 %type <string> namespace_selector |
| 264 | 260 |
| 265 %type <string> string_or_uri | 261 %type <string> string_or_uri |
| 266 %type <string> ident_or_string | 262 %type <string> ident_or_string |
| 267 %type <string> medium | 263 %type <string> medium |
| 268 %type <marginBox> margin_sym | 264 %type <marginBox> margin_sym |
| 269 | 265 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | region | 469 | region |
| 474 #if ENABLE_CSS3_CONDITIONAL_RULES | 470 #if ENABLE_CSS3_CONDITIONAL_RULES |
| 475 | supports | 471 | supports |
| 476 #endif | 472 #endif |
| 477 #if ENABLE_SHADOW_DOM | 473 #if ENABLE_SHADOW_DOM |
| 478 | host | 474 | host |
| 479 #endif | 475 #endif |
| 480 #if ENABLE_CSS_DEVICE_ADAPTATION | 476 #if ENABLE_CSS_DEVICE_ADAPTATION |
| 481 | viewport | 477 | viewport |
| 482 #endif | 478 #endif |
| 483 #if ENABLE_CSS_SHADERS | |
| 484 | filter | 479 | filter |
| 485 #endif | |
| 486 ; | 480 ; |
| 487 | 481 |
| 488 rule: | 482 rule: |
| 489 valid_rule { | 483 valid_rule { |
| 490 parser->m_hadSyntacticallyValidCSSRule = true; | 484 parser->m_hadSyntacticallyValidCSSRule = true; |
| 491 } | 485 } |
| 492 | ignored_charset | 486 | ignored_charset |
| 493 | invalid_rule | 487 | invalid_rule |
| 494 | invalid_at | 488 | invalid_at |
| 495 ; | 489 ; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 523 | page | 517 | page |
| 524 | font_face | 518 | font_face |
| 525 | media | 519 | media |
| 526 | keyframes | 520 | keyframes |
| 527 #if ENABLE_CSS3_CONDITIONAL_RULES | 521 #if ENABLE_CSS3_CONDITIONAL_RULES |
| 528 | supports | 522 | supports |
| 529 #endif | 523 #endif |
| 530 #if ENABLE_CSS_DEVICE_ADAPTATION | 524 #if ENABLE_CSS_DEVICE_ADAPTATION |
| 531 | viewport | 525 | viewport |
| 532 #endif | 526 #endif |
| 533 #if ENABLE_CSS_SHADERS | |
| 534 | filter | 527 | filter |
| 535 #endif | |
| 536 ; | 528 ; |
| 537 | 529 |
| 538 block_rule: | 530 block_rule: |
| 539 block_valid_rule | 531 block_valid_rule |
| 540 | invalid_rule | 532 | invalid_rule |
| 541 | invalid_at | 533 | invalid_at |
| 542 | namespace | 534 | namespace |
| 543 | import | 535 | import |
| 544 | region | 536 | region |
| 545 ; | 537 ; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 before_region_rule WEBKIT_REGION_RULE_SYM WHITESPACE region_selector at_rule
_header_end '{' at_rule_body_start maybe_space region_block_rule_list save_block
{ | 1077 before_region_rule WEBKIT_REGION_RULE_SYM WHITESPACE region_selector at_rule
_header_end '{' at_rule_body_start maybe_space region_block_rule_list save_block
{ |
| 1086 if ($4) | 1078 if ($4) |
| 1087 $$ = parser->createRegionRule($4, $9); | 1079 $$ = parser->createRegionRule($4, $9); |
| 1088 else { | 1080 else { |
| 1089 $$ = 0; | 1081 $$ = 0; |
| 1090 parser->popRuleData(); | 1082 parser->popRuleData(); |
| 1091 } | 1083 } |
| 1092 } | 1084 } |
| 1093 ; | 1085 ; |
| 1094 | 1086 |
| 1095 #if ENABLE_CSS_SHADERS | |
| 1096 before_filter_rule: | 1087 before_filter_rule: |
| 1097 /* empty */ { | 1088 /* empty */ { |
| 1098 parser->markRuleHeaderStart(CSSRuleSourceData::FILTER_RULE); | 1089 parser->markRuleHeaderStart(CSSRuleSourceData::FILTER_RULE); |
| 1099 parser->m_inFilterRule = true; | 1090 parser->m_inFilterRule = true; |
| 1100 } | 1091 } |
| 1101 ; | 1092 ; |
| 1102 | 1093 |
| 1103 filter: | 1094 filter: |
| 1104 before_filter_rule WEBKIT_FILTER_RULE_SYM WHITESPACE IDENT at_rule_header_en
d_maybe_space | 1095 before_filter_rule WEBKIT_FILTER_RULE_SYM WHITESPACE IDENT at_rule_header_en
d_maybe_space |
| 1105 '{' at_rule_body_start maybe_space_before_declaration declaration_list closi
ng_brace { | 1096 '{' at_rule_body_start maybe_space_before_declaration declaration_list closi
ng_brace { |
| 1106 parser->m_inFilterRule = false; | 1097 parser->m_inFilterRule = false; |
| 1107 $$ = parser->createFilterRule($4); | 1098 $$ = parser->createFilterRule($4); |
| 1108 } | 1099 } |
| 1109 ; | 1100 ; |
| 1110 #endif | |
| 1111 | 1101 |
| 1112 combinator: | 1102 combinator: |
| 1113 '+' maybe_space { $$ = CSSSelector::DirectAdjacent; } | 1103 '+' maybe_space { $$ = CSSSelector::DirectAdjacent; } |
| 1114 | '~' maybe_space { $$ = CSSSelector::IndirectAdjacent; } | 1104 | '~' maybe_space { $$ = CSSSelector::IndirectAdjacent; } |
| 1115 | '>' maybe_space { $$ = CSSSelector::Child; } | 1105 | '>' maybe_space { $$ = CSSSelector::Child; } |
| 1116 ; | 1106 ; |
| 1117 | 1107 |
| 1118 maybe_unary_operator: | 1108 maybe_unary_operator: |
| 1119 unary_operator { $$ = $1; } | 1109 unary_operator { $$ = $1; } |
| 1120 | { $$ = 1; } | 1110 | { $$ = 1; } |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2030 } | 2020 } |
| 2031 ; | 2021 ; |
| 2032 | 2022 |
| 2033 error_location: { | 2023 error_location: { |
| 2034 $$ = parser->currentLocation(); | 2024 $$ = parser->currentLocation(); |
| 2035 } | 2025 } |
| 2036 ; | 2026 ; |
| 2037 | 2027 |
| 2038 %% | 2028 %% |
| 2039 | 2029 |
| OLD | NEW |