Chromium Code Reviews| 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 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1627 $$.id = cssValueKeywordID($1); | 1627 $$.id = cssValueKeywordID($1); |
| 1628 $$.unit = CSSPrimitiveValue::CSS_IDENT; | 1628 $$.unit = CSSPrimitiveValue::CSS_IDENT; |
| 1629 $$.string = $1; | 1629 $$.string = $1; |
| 1630 } | 1630 } |
| 1631 /* 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. */ | 1631 /* 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. */ |
| 1632 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr imitiveValue::CSS_DIMENSION; } | 1632 | DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr imitiveValue::CSS_DIMENSION; } |
| 1633 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } | 1633 | unary_operator DIMEN maybe_space { $$.id = CSSValueInvalid; $$.string = $2; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; } |
| 1634 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_URI; } | 1634 | URI maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_URI; } |
| 1635 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } | 1635 | UNICODERANGE maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; } |
| 1636 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_PARSER_HEXCOLOR; } | 1636 | HEX maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPrim itiveValue::CSS_PARSER_HEXCOLOR; } |
| 1637 | IDSEL maybe_space { $$.id = CSSValueInvalid; $$.string = $1; $$.unit = CSSPr imitiveValue::CSS_STRING; } | |
|
esprehn
2013/06/20 19:45:10
Hmm, why does the grammar change?
Krzysztof Olczyk
2013/07/22 14:14:16
In order to be able specify the target element, e.
| |
| 1637 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$ .unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color: #;" */ | 1638 | '#' maybe_space { $$.id = CSSValueInvalid; $$.string = CSSParserString(); $$ .unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color: #;" */ |
| 1638 | VARFUNCTION maybe_space IDENT closing_parenthesis maybe_space { | 1639 | VARFUNCTION maybe_space IDENT closing_parenthesis maybe_space { |
| 1639 $$.id = CSSValueInvalid; | 1640 $$.id = CSSValueInvalid; |
| 1640 $$.string = $3; | 1641 $$.string = $3; |
| 1641 $$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; | 1642 $$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; |
| 1642 } | 1643 } |
| 1643 /* FIXME: according to the specs a function can have a unary_operator in front . I know no case where this makes sense */ | 1644 /* FIXME: according to the specs a function can have a unary_operator in front . I know no case where this makes sense */ |
| 1644 | function maybe_space { | 1645 | function maybe_space { |
| 1645 $$ = $1; | 1646 $$ = $1; |
| 1646 } | 1647 } |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1872 | 1873 |
| 1873 rule_error_recovery: | 1874 rule_error_recovery: |
| 1874 /* empty */ | 1875 /* empty */ |
| 1875 | rule_error_recovery error | 1876 | rule_error_recovery error |
| 1876 | rule_error_recovery invalid_square_brackets_block | 1877 | rule_error_recovery invalid_square_brackets_block |
| 1877 | rule_error_recovery invalid_parentheses_block | 1878 | rule_error_recovery invalid_parentheses_block |
| 1878 ; | 1879 ; |
| 1879 | 1880 |
| 1880 %% | 1881 %% |
| 1881 | 1882 |
| OLD | NEW |