| 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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-child/ and | 1049 // FIXME: implement named combinator and replace the following /shadow/, /sh
adow-child/ and |
| 1050 // /shadow-deep/ with named combinator's implementation. | 1050 // /deep/ with named combinator's implementation. |
| 1051 | '/' IDENT '/' maybe_space { | 1051 | '/' IDENT '/' maybe_space { |
| 1052 if ($2.equalIgnoringCase("shadow")) | 1052 if ($2.equalIgnoringCase("shadow")) |
| 1053 $$ = CSSSelector::Shadow; | 1053 $$ = CSSSelector::Shadow; |
| 1054 else if ($2.equalIgnoringCase("shadow-deep")) | 1054 else if ($2.equalIgnoringCase("deep")) |
| 1055 $$ = CSSSelector::ShadowDeep; | 1055 $$ = CSSSelector::ShadowDeep; |
| 1056 else | 1056 else |
| 1057 YYERROR; | 1057 YYERROR; |
| 1058 } | 1058 } |
| 1059 ; | 1059 ; |
| 1060 | 1060 |
| 1061 maybe_unary_operator: | 1061 maybe_unary_operator: |
| 1062 unary_operator | 1062 unary_operator |
| 1063 | /* empty */ { $$ = 1; } | 1063 | /* empty */ { $$ = 1; } |
| 1064 ; | 1064 ; |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1896 ; | 1896 ; |
| 1897 | 1897 |
| 1898 rule_error_recovery: | 1898 rule_error_recovery: |
| 1899 /* empty */ | 1899 /* empty */ |
| 1900 | rule_error_recovery error | 1900 | rule_error_recovery error |
| 1901 | rule_error_recovery invalid_square_brackets_block | 1901 | rule_error_recovery invalid_square_brackets_block |
| 1902 | rule_error_recovery invalid_parentheses_block | 1902 | rule_error_recovery invalid_parentheses_block |
| 1903 ; | 1903 ; |
| 1904 | 1904 |
| 1905 %% | 1905 %% |
| OLD | NEW |