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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 } | 1088 } |
1089 ; | 1089 ; |
1090 | 1090 |
1091 before_region_rule: | 1091 before_region_rule: |
1092 /* empty */ { | 1092 /* empty */ { |
1093 parser->startRuleHeader(CSSRuleSourceData::REGION_RULE); | 1093 parser->startRuleHeader(CSSRuleSourceData::REGION_RULE); |
1094 } | 1094 } |
1095 ; | 1095 ; |
1096 | 1096 |
1097 region: | 1097 region: |
1098 before_region_rule WEBKIT_REGION_RULE_SYM WHITESPACE region_selector at_rule
_header_end '{' at_rule_body_start maybe_space region_block_rule_body closing_br
ace { | 1098 before_region_rule WEBKIT_REGION_RULE_SYM maybe_space region_selector at_rul
e_header_end '{' at_rule_body_start maybe_space region_block_rule_body closing_b
race { |
1099 $$ = parser->createRegionRule($4, $9); | 1099 $$ = parser->createRegionRule($4, $9); |
1100 } | 1100 } |
1101 | before_region_rule WEBKIT_REGION_RULE_SYM at_rule_recovery { | 1101 | before_region_rule WEBKIT_REGION_RULE_SYM at_rule_recovery { |
1102 $$ = 0; | 1102 $$ = 0; |
1103 parser->endRuleBody(true); | 1103 parser->endRuleBody(true); |
1104 } | 1104 } |
1105 ; | 1105 ; |
1106 | 1106 |
1107 before_filter_rule: | 1107 before_filter_rule: |
1108 /* empty */ { | 1108 /* empty */ { |
1109 parser->startRuleHeader(CSSRuleSourceData::FILTER_RULE); | 1109 parser->startRuleHeader(CSSRuleSourceData::FILTER_RULE); |
1110 parser->m_inFilterRule = true; | 1110 parser->m_inFilterRule = true; |
1111 } | 1111 } |
1112 ; | 1112 ; |
1113 | 1113 |
1114 filter: | 1114 filter: |
1115 before_filter_rule WEBKIT_FILTER_RULE_SYM WHITESPACE IDENT at_rule_header_en
d_maybe_space | 1115 before_filter_rule WEBKIT_FILTER_RULE_SYM maybe_space IDENT at_rule_header_e
nd_maybe_space |
1116 '{' at_rule_body_start maybe_space_before_declaration declaration_list closi
ng_brace { | 1116 '{' at_rule_body_start maybe_space_before_declaration declaration_list closi
ng_brace { |
1117 parser->m_inFilterRule = false; | 1117 parser->m_inFilterRule = false; |
1118 $$ = parser->createFilterRule($4); | 1118 $$ = parser->createFilterRule($4); |
1119 } | 1119 } |
1120 | before_filter_rule WEBKIT_FILTER_RULE_SYM at_rule_recovery { | 1120 | before_filter_rule WEBKIT_FILTER_RULE_SYM at_rule_recovery { |
1121 $$ = 0; | 1121 $$ = 0; |
1122 } | 1122 } |
1123 ; | 1123 ; |
1124 | 1124 |
1125 combinator: | 1125 combinator: |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 unary_term | 1771 unary_term |
1772 | VARFUNCTION maybe_space IDENT closing_parenthesis { | 1772 | VARFUNCTION maybe_space IDENT closing_parenthesis { |
1773 $$.id = CSSValueInvalid; | 1773 $$.id = CSSValueInvalid; |
1774 $$.string = $3; | 1774 $$.string = $3; |
1775 $$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; | 1775 $$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; |
1776 } | 1776 } |
1777 | unary_operator unary_term { $$ = $2; $$.fValue *= $1; } | 1777 | unary_operator unary_term { $$ = $2; $$.fValue *= $1; } |
1778 ; | 1778 ; |
1779 | 1779 |
1780 calc_func_operator: | 1780 calc_func_operator: |
1781 WHITESPACE '+' WHITESPACE { | 1781 space '+' space { |
1782 $$ = '+'; | 1782 $$ = '+'; |
1783 } | 1783 } |
1784 | WHITESPACE '-' WHITESPACE { | 1784 | space '-' space { |
1785 $$ = '-'; | 1785 $$ = '-'; |
1786 } | 1786 } |
1787 | calc_maybe_space '*' maybe_space { | 1787 | calc_maybe_space '*' maybe_space { |
1788 $$ = '*'; | 1788 $$ = '*'; |
1789 } | 1789 } |
1790 | calc_maybe_space '/' maybe_space { | 1790 | calc_maybe_space '/' maybe_space { |
1791 $$ = '/'; | 1791 $$ = '/'; |
1792 } | 1792 } |
1793 ; | 1793 ; |
1794 | 1794 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 | 1934 |
1935 rule_error_recovery: | 1935 rule_error_recovery: |
1936 /* empty */ | 1936 /* empty */ |
1937 | rule_error_recovery error | 1937 | rule_error_recovery error |
1938 | rule_error_recovery invalid_square_brackets_block | 1938 | rule_error_recovery invalid_square_brackets_block |
1939 | rule_error_recovery invalid_parentheses_block | 1939 | rule_error_recovery invalid_parentheses_block |
1940 ; | 1940 ; |
1941 | 1941 |
1942 %% | 1942 %% |
1943 | 1943 |
OLD | NEW |