Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp |
index 4b438c255c3c38532d465dcd251db3d9ab353d5b..54474fc6f94ef504e06602acf98d95b06ccdba7c 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp |
@@ -23,6 +23,17 @@ namespace blink { |
namespace CSSPropertyParserHelpers { |
+void complete4Sides(CSSValue* side[4]) { |
aazzam
2017/01/19 01:48:38
why did you put this into CSSPropertyParserHelpers
|
+ if (side[3]) |
+ return; |
+ if (!side[2]) { |
+ if (!side[1]) |
+ side[1] = side[0]; |
+ side[2] = side[0]; |
+ } |
+ side[3] = side[1]; |
+} |
+ |
bool consumeCommaIncludingWhitespace(CSSParserTokenRange& range) { |
CSSParserToken value = range.peek(); |
if (value.type() != CommaToken) |