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

Unified Diff: third_party/WebKit/Source/core/css/CSSGradientValue.cpp

Issue 1706573002: Move background related longhands into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix logic error Created 4 years, 10 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/CSSGradientValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
index 0a76377836fe4ace2f8c270281870a49f2a9ceda..2f8c60f4906d1cbf03271f629133c6d1bd9de88b 100644
--- a/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSGradientValue.cpp
@@ -524,6 +524,8 @@ static float positionFromValue(CSSValue* value, const CSSToLengthConversionData&
case CSSValueRight:
ASSERT(isHorizontal);
return size.width();
+ case CSSValueCenter:
+ return origin + sign * .5f * edgeDistance;
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698