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

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

Issue 82863002: Remove ::part. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 %token <string> FUNCTION 254 %token <string> FUNCTION
255 %token <string> ANYFUNCTION 255 %token <string> ANYFUNCTION
256 %token <string> CUEFUNCTION 256 %token <string> CUEFUNCTION
257 %token <string> NOTFUNCTION 257 %token <string> NOTFUNCTION
258 %token <string> DISTRIBUTEDFUNCTION 258 %token <string> DISTRIBUTEDFUNCTION
259 %token <string> CALCFUNCTION 259 %token <string> CALCFUNCTION
260 %token <string> MINFUNCTION 260 %token <string> MINFUNCTION
261 %token <string> MAXFUNCTION 261 %token <string> MAXFUNCTION
262 %token <string> VARFUNCTION 262 %token <string> VARFUNCTION
263 %token <string> VAR_DEFINITION 263 %token <string> VAR_DEFINITION
264 %token <string> PARTFUNCTION
265 %token <string> HOSTFUNCTION 264 %token <string> HOSTFUNCTION
266 265
267 %token <string> UNICODERANGE 266 %token <string> UNICODERANGE
268 267
269 %type <relation> combinator 268 %type <relation> combinator
270 269
271 %type <rule> ruleset 270 %type <rule> ruleset
272 %type <rule> media 271 %type <rule> media
273 %type <rule> import 272 %type <rule> import
274 %type <rule> namespace 273 %type <rule> namespace
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 selectorVector.append(parser->sinkFloatingSelector($4)); 1544 selectorVector.append(parser->sinkFloatingSelector($4));
1546 $$->adoptSelectorVector(selectorVector); 1545 $$->adoptSelectorVector(selectorVector);
1547 1546
1548 parser->tokenToLowerCase($2); 1547 parser->tokenToLowerCase($2);
1549 $$->setValue($2); 1548 $$->setValue($2);
1550 } 1549 }
1551 } 1550 }
1552 | ':' NOTFUNCTION selector_recovery closing_parenthesis { 1551 | ':' NOTFUNCTION selector_recovery closing_parenthesis {
1553 YYERROR; 1552 YYERROR;
1554 } 1553 }
1555 | ':' ':' PARTFUNCTION maybe_space IDENT maybe_space closing_parenthesis {
1556 $$ = parser->createFloatingSelector();
1557 $$->setMatch(CSSSelector::PseudoElement);
1558 $$->setArgument($5);
1559 if ($5.startsWithIgnoringCase("-webkit"))
1560 $$->setMatchUserAgentOnly();
1561 parser->tokenToLowerCase($3);
1562 $$->setValue($3);
1563 CSSSelector::PseudoType type = $$->pseudoType();
1564 if (type != CSSSelector::PseudoPart)
1565 YYERROR;
1566 }
1567 | ':' ':' PARTFUNCTION selector_recovery closing_parenthesis {
1568 YYERROR;
1569 }
1570 | ':' HOSTFUNCTION maybe_space simple_selector_list maybe_space closing_pare nthesis { 1554 | ':' HOSTFUNCTION maybe_space simple_selector_list maybe_space closing_pare nthesis {
1571 $$ = parser->createFloatingSelector(); 1555 $$ = parser->createFloatingSelector();
1572 $$->setMatch(CSSSelector::PseudoClass); 1556 $$->setMatch(CSSSelector::PseudoClass);
1573 $$->adoptSelectorVector(*parser->sinkFloatingSelectorVector($4)); 1557 $$->adoptSelectorVector(*parser->sinkFloatingSelectorVector($4));
1574 parser->tokenToLowerCase($2); 1558 parser->tokenToLowerCase($2);
1575 $$->setValue($2); 1559 $$->setValue($2);
1576 CSSSelector::PseudoType type = $$->pseudoType(); 1560 CSSSelector::PseudoType type = $$->pseudoType();
1577 if (type != CSSSelector::PseudoHost) 1561 if (type != CSSSelector::PseudoHost)
1578 YYERROR; 1562 YYERROR;
1579 } 1563 }
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 1961
1978 rule_error_recovery: 1962 rule_error_recovery:
1979 /* empty */ 1963 /* empty */
1980 | rule_error_recovery error 1964 | rule_error_recovery error
1981 | rule_error_recovery invalid_square_brackets_block 1965 | rule_error_recovery invalid_square_brackets_block
1982 | rule_error_recovery invalid_parentheses_block 1966 | rule_error_recovery invalid_parentheses_block
1983 ; 1967 ;
1984 1968
1985 %% 1969 %%
1986 1970
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/part-pseudo-element-expected.txt ('k') | Source/core/css/CSSParserValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698