Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: Source/core/css/CSSGrammar.y

Issue 210713002: Implement ::shadow pseudo element and replace /shadow/ with ::shadow. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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-child/ and
1050 // /shadow-deep/ with named combinator's implementation.
1051 | '/' IDENT '/' maybe_space { 1049 | '/' IDENT '/' maybe_space {
1052 if ($2.equalIgnoringCase("shadow")) 1050 if ($2.equalIgnoringCase("shadow-deep"))
1053 $$ = CSSSelector::Shadow;
1054 else if ($2.equalIgnoringCase("shadow-deep"))
1055 $$ = CSSSelector::ShadowDeep; 1051 $$ = CSSSelector::ShadowDeep;
1056 else 1052 else
1057 YYERROR; 1053 YYERROR;
1058 } 1054 }
1059 ; 1055 ;
1060 1056
1061 maybe_unary_operator: 1057 maybe_unary_operator:
1062 unary_operator 1058 unary_operator
1063 | /* empty */ { $$ = 1; } 1059 | /* empty */ { $$ = 1; }
1064 ; 1060 ;
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1896 ; 1892 ;
1897 1893
1898 rule_error_recovery: 1894 rule_error_recovery:
1899 /* empty */ 1895 /* empty */
1900 | rule_error_recovery error 1896 | rule_error_recovery error
1901 | rule_error_recovery invalid_square_brackets_block 1897 | rule_error_recovery invalid_square_brackets_block
1902 | rule_error_recovery invalid_parentheses_block 1898 | rule_error_recovery invalid_parentheses_block
1903 ; 1899 ;
1904 1900
1905 %% 1901 %%
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698