Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: Source/core/css/parser/CSSGrammar.y

Issue 471893002: Support consecutive slash operators for border-image value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update TC Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/parser/CSSGrammar.y
diff --git a/Source/core/css/parser/CSSGrammar.y b/Source/core/css/parser/CSSGrammar.y
index 253597c94a0f14f2d641424bf26318d9683bbd4e..417f5680e3b51cb8a41d8acf74d37de538df3e22 100644
--- a/Source/core/css/parser/CSSGrammar.y
+++ b/Source/core/css/parser/CSSGrammar.y
@@ -350,6 +350,7 @@ inline static CSSParserValue makeIdentValue(CSSParserString string)
%type <integer> unary_operator
%type <integer> maybe_unary_operator
%type <character> operator
+%type <character> slash_operator
%type <valueList> expr
%type <value> term
@@ -1592,6 +1593,12 @@ expr:
$$ = $1;
$$->addValue(parser->sinkFloatingValue($2));
}
+ | expr slash_operator slash_operator term {
+ $$ = $1;
+ $$->addValue(makeOperatorValue($2));
+ $$->addValue(makeOperatorValue($3));
+ $$->addValue(parser->sinkFloatingValue($4));
+ }
;
expr_recovery:
@@ -1600,10 +1607,14 @@ expr_recovery:
}
;
+slash_operator:
+ '/' maybe_space {
+ $$ = '/';
+ }
+ ;
+
operator:
- '/' maybe_space {
- $$ = '/';
- }
+ slash_operator
| ',' maybe_space {
$$ = ',';
}

Powered by Google App Engine
This is Rietveld 408576698