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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_SUPPORTS_CONDITION_SYM | 144 %token INTERNAL_SUPPORTS_CONDITION_SYM |
| 145 %token KEYFRAMES_SYM |
145 %token WEBKIT_KEYFRAMES_SYM | 146 %token WEBKIT_KEYFRAMES_SYM |
146 %token WEBKIT_REGION_RULE_SYM | 147 %token WEBKIT_REGION_RULE_SYM |
147 %token WEBKIT_FILTER_RULE_SYM | 148 %token WEBKIT_FILTER_RULE_SYM |
148 %token <marginBox> TOPLEFTCORNER_SYM | 149 %token <marginBox> TOPLEFTCORNER_SYM |
149 %token <marginBox> TOPLEFT_SYM | 150 %token <marginBox> TOPLEFT_SYM |
150 %token <marginBox> TOPCENTER_SYM | 151 %token <marginBox> TOPCENTER_SYM |
151 %token <marginBox> TOPRIGHT_SYM | 152 %token <marginBox> TOPRIGHT_SYM |
152 %token <marginBox> TOPRIGHTCORNER_SYM | 153 %token <marginBox> TOPRIGHTCORNER_SYM |
153 %token <marginBox> BOTTOMLEFTCORNER_SYM | 154 %token <marginBox> BOTTOMLEFTCORNER_SYM |
154 %token <marginBox> BOTTOMLEFT_SYM | 155 %token <marginBox> BOTTOMLEFT_SYM |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 } | 816 } |
816 ; | 817 ; |
817 | 818 |
818 before_keyframes_rule: | 819 before_keyframes_rule: |
819 /* empty */ { | 820 /* empty */ { |
820 parser->startRuleHeader(CSSRuleSourceData::KEYFRAMES_RULE); | 821 parser->startRuleHeader(CSSRuleSourceData::KEYFRAMES_RULE); |
821 } | 822 } |
822 ; | 823 ; |
823 | 824 |
824 keyframes: | 825 keyframes: |
| 826 before_keyframes_rule KEYFRAMES_SYM maybe_space keyframe_name at_rule_header
_end_maybe_space '{' at_rule_body_start maybe_space location_label keyframes_rul
e closing_brace { |
| 827 $$ = parser->createKeyframesRule($4, parser->sinkFloatingKeyframeVector(
$10), false /* isPrefixed */); |
| 828 } |
| 829 | |
825 before_keyframes_rule WEBKIT_KEYFRAMES_SYM maybe_space keyframe_name at_rule
_header_end_maybe_space '{' at_rule_body_start maybe_space location_label keyfra
mes_rule closing_brace { | 830 before_keyframes_rule WEBKIT_KEYFRAMES_SYM maybe_space keyframe_name at_rule
_header_end_maybe_space '{' at_rule_body_start maybe_space location_label keyfra
mes_rule closing_brace { |
826 $$ = parser->createKeyframesRule($4, parser->sinkFloatingKeyframeVector(
$10)); | 831 $$ = parser->createKeyframesRule($4, parser->sinkFloatingKeyframeVector(
$10), true /* isPrefixed */); |
| 832 } |
| 833 | before_keyframes_rule KEYFRAMES_SYM at_rule_recovery { |
| 834 $$ = 0; |
| 835 parser->endRuleBody(true); |
827 } | 836 } |
828 | before_keyframes_rule WEBKIT_KEYFRAMES_SYM at_rule_recovery { | 837 | before_keyframes_rule WEBKIT_KEYFRAMES_SYM at_rule_recovery { |
829 $$ = 0; | 838 $$ = 0; |
830 parser->endRuleBody(true); | 839 parser->endRuleBody(true); |
831 } | 840 } |
832 ; | 841 ; |
833 | 842 |
834 keyframe_name: | 843 keyframe_name: |
835 IDENT | 844 IDENT |
836 | STRING | 845 | STRING |
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1905 | 1914 |
1906 rule_error_recovery: | 1915 rule_error_recovery: |
1907 /* empty */ | 1916 /* empty */ |
1908 | rule_error_recovery error | 1917 | rule_error_recovery error |
1909 | rule_error_recovery invalid_square_brackets_block | 1918 | rule_error_recovery invalid_square_brackets_block |
1910 | rule_error_recovery invalid_parentheses_block | 1919 | rule_error_recovery invalid_parentheses_block |
1911 ; | 1920 ; |
1912 | 1921 |
1913 %% | 1922 %% |
1914 | 1923 |
OLD | NEW |