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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp

Issue 2642013002: Implements CSSPropertyAPI for the shape-outside property. (Closed)
Patch Set: Created 3 years, 11 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: 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)

Powered by Google App Engine
This is Rietveld 408576698