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; |
} |