OLD | NEW |
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. |
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 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 unary_term maybe_space | 1601 unary_term maybe_space |
1601 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } | 1602 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } |
1602 | STRING maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSP
rimitiveValue::CSS_STRING; } | 1603 | STRING maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSP
rimitiveValue::CSS_STRING; } |
1603 | IDENT maybe_space { $$ = makeIdentValue($1); } | 1604 | IDENT maybe_space { $$ = makeIdentValue($1); } |
1604 /* 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. */ | 1605 /* 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. */ |
1605 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr
imitiveValue::CSS_DIMENSION; } | 1606 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr
imitiveValue::CSS_DIMENSION; } |
1606 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2;
$$.unit = CSSPrimitiveValue::CSS_DIMENSION; } | 1607 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2;
$$.unit = CSSPrimitiveValue::CSS_DIMENSION; } |
1607 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_URI; } | 1608 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_URI; } |
1608 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit
= CSSPrimitiveValue::CSS_UNICODE_RANGE; } | 1609 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit
= CSSPrimitiveValue::CSS_UNICODE_RANGE; } |
1609 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_PARSER_HEXCOLOR; } | 1610 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_PARSER_HEXCOLOR; } |
| 1611 | IDSEL maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr
imitiveValue::CSS_STRING; } |
1610 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$
.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color:
#;" */ | 1612 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$
.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color:
#;" */ |
1611 /* FIXME: according to the specs a function can have a unary_operator in front
. I know no case where this makes sense */ | 1613 /* FIXME: according to the specs a function can have a unary_operator in front
. I know no case where this makes sense */ |
1612 | function maybe_space | 1614 | function maybe_space |
1613 | calc_function maybe_space | 1615 | calc_function maybe_space |
1614 | min_or_max_function maybe_space | 1616 | min_or_max_function maybe_space |
1615 | '%' maybe_space { /* Handle width: %; */ | 1617 | '%' maybe_space { /* Handle width: %; */ |
1616 $$.id = CSSValueInvalid; $$.unit = 0; | 1618 $$.id = CSSValueInvalid; $$.unit = 0; |
1617 } | 1619 } |
1618 | track_names_list maybe_space | 1620 | track_names_list maybe_space |
1619 ; | 1621 ; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1852 ; | 1854 ; |
1853 | 1855 |
1854 rule_error_recovery: | 1856 rule_error_recovery: |
1855 /* empty */ | 1857 /* empty */ |
1856 | rule_error_recovery error | 1858 | rule_error_recovery error |
1857 | rule_error_recovery invalid_square_brackets_block | 1859 | rule_error_recovery invalid_square_brackets_block |
1858 | rule_error_recovery invalid_parentheses_block | 1860 | rule_error_recovery invalid_parentheses_block |
1859 ; | 1861 ; |
1860 | 1862 |
1861 %% | 1863 %% |
OLD | NEW |