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

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

Issue 89843004: Call AtomicString::number() in CSSGrammar.y (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | no next file » | 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 $$->setArgument($4); 1486 $$->setArgument($4);
1487 $$->setValue($2); 1487 $$->setValue($2);
1488 CSSSelector::PseudoType type = $$->pseudoType(); 1488 CSSSelector::PseudoType type = $$->pseudoType();
1489 if (type == CSSSelector::PseudoUnknown) 1489 if (type == CSSSelector::PseudoUnknown)
1490 YYERROR; 1490 YYERROR;
1491 } 1491 }
1492 // used by :nth-* 1492 // used by :nth-*
1493 | ':' FUNCTION maybe_space maybe_unary_operator INTEGER maybe_space closing_ parenthesis { 1493 | ':' FUNCTION maybe_space maybe_unary_operator INTEGER maybe_space closing_ parenthesis {
1494 $$ = parser->createFloatingSelector(); 1494 $$ = parser->createFloatingSelector();
1495 $$->setMatch(CSSSelector::PseudoClass); 1495 $$->setMatch(CSSSelector::PseudoClass);
1496 $$->setArgument(String::number($4 * $5)); 1496 $$->setArgument(AtomicString::number($4 * $5));
1497 $$->setValue($2); 1497 $$->setValue($2);
1498 CSSSelector::PseudoType type = $$->pseudoType(); 1498 CSSSelector::PseudoType type = $$->pseudoType();
1499 if (type == CSSSelector::PseudoUnknown) 1499 if (type == CSSSelector::PseudoUnknown)
1500 YYERROR; 1500 YYERROR;
1501 } 1501 }
1502 // used by :nth-*(odd/even) and :lang 1502 // used by :nth-*(odd/even) and :lang
1503 | ':' FUNCTION maybe_space IDENT maybe_space closing_parenthesis { 1503 | ':' FUNCTION maybe_space IDENT maybe_space closing_parenthesis {
1504 $$ = parser->createFloatingSelector(); 1504 $$ = parser->createFloatingSelector();
1505 $$->setMatch(CSSSelector::PseudoClass); 1505 $$->setMatch(CSSSelector::PseudoClass);
1506 $$->setArgument($4); 1506 $$->setArgument($4);
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1976 1976
1977 rule_error_recovery: 1977 rule_error_recovery:
1978 /* empty */ 1978 /* empty */
1979 | rule_error_recovery error 1979 | rule_error_recovery error
1980 | rule_error_recovery invalid_square_brackets_block 1980 | rule_error_recovery invalid_square_brackets_block
1981 | rule_error_recovery invalid_parentheses_block 1981 | rule_error_recovery invalid_parentheses_block
1982 ; 1982 ;
1983 1983
1984 %% 1984 %%
1985 1985
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698