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) 2014 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 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1605 unary_term maybe_space | 1606 unary_term maybe_space |
1606 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } | 1607 | unary_operator unary_term maybe_space { $$ = $2; $$.fValue *= $1; } |
1607 | STRING maybe_space { $$.id = CSSValueInvalid; $$.isInt = false; $$.string =
$1; $$.unit = CSSPrimitiveValue::CSS_STRING; } | 1608 | STRING maybe_space { $$.id = CSSValueInvalid; $$.isInt = false; $$.string =
$1; $$.unit = CSSPrimitiveValue::CSS_STRING; } |
1608 | IDENT maybe_space { $$ = makeIdentValue($1); } | 1609 | IDENT maybe_space { $$ = makeIdentValue($1); } |
1609 /* 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. */ | 1610 /* 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. */ |
1610 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = fals
e; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } | 1611 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = fals
e; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } |
1611 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2;
$$.isInt = false; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } | 1612 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2;
$$.isInt = false; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } |
1612 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false;
$$.unit = CSSPrimitiveValue::CSS_URI; } | 1613 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false;
$$.unit = CSSPrimitiveValue::CSS_URI; } |
1613 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt
= false; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } | 1614 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt
= false; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } |
1614 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false;
$$.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } | 1615 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = false;
$$.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } |
| 1616 | IDSEL maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.isInt = fals
e; $$.unit = CSSPrimitiveValue::CSS_PARSER_IDSEL; } |
1615 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$
.isInt = false; $$.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle er
ror case: "color: #;" */ | 1617 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$
.isInt = false; $$.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle er
ror case: "color: #;" */ |
1616 /* FIXME: according to the specs a function can have a unary_operator in front
. I know no case where this makes sense */ | 1618 /* FIXME: according to the specs a function can have a unary_operator in front
. I know no case where this makes sense */ |
1617 | function maybe_space | 1619 | function maybe_space |
1618 | calc_function maybe_space | 1620 | calc_function maybe_space |
1619 | '%' maybe_space { /* Handle width: %; */ | 1621 | '%' maybe_space { /* Handle width: %; */ |
1620 $$.id = CSSValueInvalid; $$.isInt = false; $$.unit = 0; | 1622 $$.id = CSSValueInvalid; $$.isInt = false; $$.unit = 0; |
1621 } | 1623 } |
1622 | track_names_list maybe_space | 1624 | track_names_list maybe_space |
1623 ; | 1625 ; |
1624 | 1626 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 ; | 1835 ; |
1834 | 1836 |
1835 rule_error_recovery: | 1837 rule_error_recovery: |
1836 /* empty */ | 1838 /* empty */ |
1837 | rule_error_recovery error | 1839 | rule_error_recovery error |
1838 | rule_error_recovery invalid_square_brackets_block | 1840 | rule_error_recovery invalid_square_brackets_block |
1839 | rule_error_recovery invalid_parentheses_block | 1841 | rule_error_recovery invalid_parentheses_block |
1840 ; | 1842 ; |
1841 | 1843 |
1842 %% | 1844 %% |
OLD | NEW |