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

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

Issue 17450016: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied code review suggestions. Also rebased. Created 6 years, 8 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
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 * Copyright (C) 2013 Opera Software ASA. All rights reserved.
fs 2014/04/17 15:33:48 Missed a spot =)
Krzysztof Olczyk 2014/09/30 15:41:46 Done.
9 * 10 *
10 * This library is free software; you can redistribute it and/or 11 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public 12 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either 13 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version. 14 * version 2 of the License, or (at your option) any later version.
14 * 15 *
15 * This library is distributed in the hope that it will be useful, 16 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details. 19 * Lesser General Public License for more details.
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 unary_term maybe_space 1594 unary_term maybe_space
1594 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } 1595 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; }
1595 | STRING maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSP rimitiveValue::CSS_STRING; } 1596 | STRING maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSP rimitiveValue::CSS_STRING; }
1596 | IDENT maybe_space { $$ = makeIdentValue($1); } 1597 | IDENT maybe_space { $$ = makeIdentValue($1); }
1597 /* We might need to actually parse the number from a dimension, but we can't j ust put something that uses $$.string into unary_term. */ 1598 /* We might need to actually parse the number from a dimension, but we can't j ust put something that uses $$.string into unary_term. */
1598 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr imitiveValue::CSS_DIMENSION; } 1599 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr imitiveValue::CSS_DIMENSION; }
1599 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } 1600 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; }
1600 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_URI; } 1601 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_URI; }
1601 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } 1602 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; }
1602 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_PARSER_HEXCOLOR; } 1603 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_PARSER_HEXCOLOR; }
1604 | IDSEL maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr imitiveValue::CSS_PARSER_IDSEL; }
1603 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$ .unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color: #;" */ 1605 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$ .unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color: #;" */
1604 /* FIXME: according to the specs a function can have a unary_operator in front . I know no case where this makes sense */ 1606 /* FIXME: according to the specs a function can have a unary_operator in front . I know no case where this makes sense */
1605 | function maybe_space 1607 | function maybe_space
1606 | calc_function maybe_space 1608 | calc_function maybe_space
1607 | '%' maybe_space { /* Handle width: %; */ 1609 | '%' maybe_space { /* Handle width: %; */
1608 $$.id = CSSValueInvalid; $$.unit = 0; 1610 $$.id = CSSValueInvalid; $$.unit = 0;
1609 } 1611 }
1610 | track_names_list maybe_space 1612 | track_names_list maybe_space
1611 ; 1613 ;
1612 1614
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 ; 1823 ;
1822 1824
1823 rule_error_recovery: 1825 rule_error_recovery:
1824 /* empty */ 1826 /* empty */
1825 | rule_error_recovery error 1827 | rule_error_recovery error
1826 | rule_error_recovery invalid_square_brackets_block 1828 | rule_error_recovery invalid_square_brackets_block
1827 | rule_error_recovery invalid_parentheses_block 1829 | rule_error_recovery invalid_parentheses_block
1828 ; 1830 ;
1829 1831
1830 %% 1832 %%
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698