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

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

Issue 206033004: Unguard Shadow DOM features. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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
« no previous file with comments | « no previous file | Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // /shadow-deep/ with named combinator's implementation.
1051 | '/' IDENT '/' maybe_space { 1051 | '/' IDENT '/' maybe_space {
1052 if (!RuntimeEnabledFeatures::shadowDOMEnabled())
1053 YYERROR;
1054 if ($2.equalIgnoringCase("shadow")) 1052 if ($2.equalIgnoringCase("shadow"))
1055 $$ = CSSSelector::Shadow; 1053 $$ = CSSSelector::Shadow;
1056 else if ($2.equalIgnoringCase("shadow-deep")) 1054 else if ($2.equalIgnoringCase("shadow-deep"))
1057 $$ = CSSSelector::ShadowDeep; 1055 $$ = CSSSelector::ShadowDeep;
1058 else 1056 else
1059 YYERROR; 1057 YYERROR;
1060 } 1058 }
1061 ; 1059 ;
1062 1060
1063 maybe_unary_operator: 1061 maybe_unary_operator:
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 ; 1896 ;
1899 1897
1900 rule_error_recovery: 1898 rule_error_recovery:
1901 /* empty */ 1899 /* empty */
1902 | rule_error_recovery error 1900 | rule_error_recovery error
1903 | rule_error_recovery invalid_square_brackets_block 1901 | rule_error_recovery invalid_square_brackets_block
1904 | rule_error_recovery invalid_parentheses_block 1902 | rule_error_recovery invalid_parentheses_block
1905 ; 1903 ;
1906 1904
1907 %% 1905 %%
1908
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698