Index: Source/core/css/CSSGrammar.y.in |
diff --git a/Source/core/css/CSSGrammar.y.in b/Source/core/css/CSSGrammar.y.in |
index f9cd738e00f12c95fb974a0efce3b85bccd5d959..53aa5c6d41e3ada03c62ec562fda78ae8b8ab3df 100644 |
--- a/Source/core/css/CSSGrammar.y.in |
+++ b/Source/core/css/CSSGrammar.y.in |
@@ -87,7 +87,7 @@ static inline bool isCSSTokenAString(int yytype) |
%} |
-%expect 33 |
+%expect 32 |
%nonassoc LOWEST_PREC |
@@ -1678,13 +1678,13 @@ term: |
$$.unit = CSSPrimitiveValue::CSS_VARIABLE_NAME; |
} |
/* FIXME: according to the specs a function can have a unary_operator in front. I know no case where this makes sense */ |
- | function { |
+ | function maybe_space { |
$$ = $1; |
} |
- | calc_function { |
+ | calc_function maybe_space { |
$$ = $1; |
} |
- | min_or_max_function { |
+ | min_or_max_function maybe_space { |
$$ = $1; |
} |
| '%' maybe_space { /* Handle width: %; */ |
@@ -1732,7 +1732,7 @@ unary_term: |
; |
function: |
- FUNCTION maybe_space expr closing_parenthesis maybe_space { |
+ FUNCTION maybe_space expr closing_parenthesis { |
CSSParserFunction* f = parser->createFloatingFunction(); |
f->name = $1; |
f->args = parser->sinkFloatingValueList($3); |
@@ -1740,7 +1740,7 @@ function: |
$$.unit = CSSParserValue::Function; |
$$.function = f; |
} | |
- FUNCTION maybe_space closing_parenthesis maybe_space { |
+ FUNCTION maybe_space closing_parenthesis { |
CSSParserFunction* f = parser->createFloatingFunction(); |
f->name = $1; |
CSSParserValueList* valueList = parser->createFloatingValueList(); |
@@ -1749,7 +1749,7 @@ function: |
$$.unit = CSSParserValue::Function; |
$$.function = f; |
} | |
- FUNCTION maybe_space error { |
+ FUNCTION maybe_space expr_recovery closing_parenthesis { |
CSSParserFunction* f = parser->createFloatingFunction(); |
f->name = $1; |
f->args = nullptr; |
@@ -1860,7 +1860,7 @@ calc_func_expr_list: |
; |
calc_function: |
- CALCFUNCTION maybe_space calc_func_expr calc_maybe_space ')' maybe_space { |
+ CALCFUNCTION maybe_space calc_func_expr calc_maybe_space ')' { |
CSSParserFunction* f = parser->createFloatingFunction(); |
f->name = $1; |
f->args = parser->sinkFloatingValueList($3); |
@@ -1868,7 +1868,7 @@ calc_function: |
$$.unit = CSSParserValue::Function; |
$$.function = f; |
} |
- | CALCFUNCTION maybe_space error { |
+ | CALCFUNCTION maybe_space expr_recovery closing_parenthesis { |
YYERROR; |
} |
; |
@@ -1884,7 +1884,7 @@ min_or_max: |
; |
min_or_max_function: |
- min_or_max maybe_space calc_func_expr_list ')' maybe_space { |
+ min_or_max maybe_space calc_func_expr_list ')' { |
CSSParserFunction* f = parser->createFloatingFunction(); |
f->name = $1; |
f->args = parser->sinkFloatingValueList($3); |
@@ -1892,7 +1892,7 @@ min_or_max_function: |
$$.unit = CSSParserValue::Function; |
$$.function = f; |
} |
- | min_or_max maybe_space error { |
+ | min_or_max maybe_space expr_recovery closing_parenthesis { |
YYERROR; |
} |
; |