OLD | NEW |
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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 '{' at_rule_body_start maybe_space_before_declaration declaration_list closi
ng_brace { | 1039 '{' at_rule_body_start maybe_space_before_declaration declaration_list closi
ng_brace { |
1040 $$ = parser->createViewportRule(); | 1040 $$ = parser->createViewportRule(); |
1041 parser->markViewportRuleBodyEnd(); | 1041 parser->markViewportRuleBodyEnd(); |
1042 } | 1042 } |
1043 ; | 1043 ; |
1044 | 1044 |
1045 combinator: | 1045 combinator: |
1046 '+' maybe_space { $$ = CSSSelector::DirectAdjacent; } | 1046 '+' maybe_space { $$ = CSSSelector::DirectAdjacent; } |
1047 | '~' maybe_space { $$ = CSSSelector::IndirectAdjacent; } | 1047 | '~' maybe_space { $$ = CSSSelector::IndirectAdjacent; } |
1048 | '>' maybe_space { $$ = CSSSelector::Child; } | 1048 | '>' maybe_space { $$ = CSSSelector::Child; } |
1049 // FIXME: implement named combinator and replace the following /shadow/, /sh
adow-all/ and | 1049 // FIXME: implement named combinator and replace the following /shadow/, /sh
adow-child/ and |
1050 // /shadow-deep/ with named combinator's implementation. | 1050 // /shadow-deep/ with named combinator's implementation. |
1051 | '/' IDENT '/' maybe_space { | 1051 | '/' IDENT '/' maybe_space { |
1052 if (!RuntimeEnabledFeatures::shadowDOMEnabled()) | 1052 if (!RuntimeEnabledFeatures::shadowDOMEnabled()) |
1053 YYERROR; | 1053 YYERROR; |
1054 if ($2.equalIgnoringCase("shadow-all")) | 1054 if ($2.equalIgnoringCase("shadow")) |
1055 $$ = CSSSelector::ShadowAll; | 1055 $$ = CSSSelector::Shadow; |
1056 else if ($2.equalIgnoringCase("shadow-deep")) | 1056 else if ($2.equalIgnoringCase("shadow-deep")) |
1057 $$ = CSSSelector::ShadowDeep; | 1057 $$ = CSSSelector::ShadowDeep; |
1058 else | 1058 else |
1059 YYERROR; | 1059 YYERROR; |
1060 } | 1060 } |
1061 ; | 1061 ; |
1062 | 1062 |
1063 maybe_unary_operator: | 1063 maybe_unary_operator: |
1064 unary_operator | 1064 unary_operator |
1065 | /* empty */ { $$ = 1; } | 1065 | /* empty */ { $$ = 1; } |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 | 1899 |
1900 rule_error_recovery: | 1900 rule_error_recovery: |
1901 /* empty */ | 1901 /* empty */ |
1902 | rule_error_recovery error | 1902 | rule_error_recovery error |
1903 | rule_error_recovery invalid_square_brackets_block | 1903 | rule_error_recovery invalid_square_brackets_block |
1904 | rule_error_recovery invalid_parentheses_block | 1904 | rule_error_recovery invalid_parentheses_block |
1905 ; | 1905 ; |
1906 | 1906 |
1907 %% | 1907 %% |
1908 | 1908 |
OLD | NEW |