OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App
le Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App
le Inc. All rights reserved. |
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
6 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 6 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 $$.id = cssValueKeywordID($1); | 1635 $$.id = cssValueKeywordID($1); |
1636 $$.unit = CSSPrimitiveValue::CSS_IDENT; | 1636 $$.unit = CSSPrimitiveValue::CSS_IDENT; |
1637 $$.string = $1; | 1637 $$.string = $1; |
1638 } | 1638 } |
1639 /* 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. */ | 1639 /* 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. */ |
1640 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr
imitiveValue::CSS_DIMENSION; } | 1640 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr
imitiveValue::CSS_DIMENSION; } |
1641 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2;
$$.unit = CSSPrimitiveValue::CSS_DIMENSION; } | 1641 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2;
$$.unit = CSSPrimitiveValue::CSS_DIMENSION; } |
1642 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_URI; } | 1642 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_URI; } |
1643 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit
= CSSPrimitiveValue::CSS_UNICODE_RANGE; } | 1643 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit
= CSSPrimitiveValue::CSS_UNICODE_RANGE; } |
1644 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_PARSER_HEXCOLOR; } | 1644 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim
itiveValue::CSS_PARSER_HEXCOLOR; } |
| 1645 | IDSEL maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr
imitiveValue::CSS_STRING; } |
1645 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$
.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color:
#;" */ | 1646 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$
.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color:
#;" */ |
1646 | VARFUNCTION maybe_space IDENT closing_parenthesis maybe_space { | 1647 | VARFUNCTION maybe_space IDENT closing_parenthesis maybe_space { |
1647 $$.id = CSSValueInvalid; | 1648 $$.id = CSSValueInvalid; |
1648 $$.string = $3; | 1649 $$.string = $3; |
1649 $$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; | 1650 $$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; |
1650 } | 1651 } |
1651 | VARFUNCTION maybe_space expr_recovery closing_parenthesis { | 1652 | VARFUNCTION maybe_space expr_recovery closing_parenthesis { |
1652 YYERROR; | 1653 YYERROR; |
1653 } | 1654 } |
1654 /* FIXME: according to the specs a function can have a unary_operator in front
. I know no case where this makes sense */ | 1655 /* FIXME: according to the specs a function can have a unary_operator in front
. I know no case where this makes sense */ |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 | 1877 |
1877 rule_error_recovery: | 1878 rule_error_recovery: |
1878 /* empty */ | 1879 /* empty */ |
1879 | rule_error_recovery error | 1880 | rule_error_recovery error |
1880 | rule_error_recovery invalid_square_brackets_block | 1881 | rule_error_recovery invalid_square_brackets_block |
1881 | rule_error_recovery invalid_parentheses_block | 1882 | rule_error_recovery invalid_parentheses_block |
1882 ; | 1883 ; |
1883 | 1884 |
1884 %% | 1885 %% |
1885 | 1886 |
OLD | NEW |