Index: third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp b/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp |
index aedbb41c1b1a99a7745f9df2d93ec968913b6867..d2706527c7378776d428b89d374b5ae405b392c5 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp |
@@ -222,7 +222,7 @@ void CSSToStyleMap::mapFillXPosition(StyleResolverState& state, FillLayer* layer |
if (value.isValuePair()) |
length = toCSSPrimitiveValue(toCSSValuePair(value).second()).convertToLength(state.cssToLengthConversionData()); |
else |
- length = toCSSPrimitiveValue(value).convertToLength(state.cssToLengthConversionData()); |
+ length = StyleBuilderConverter::convertPositionLength<CSSValueLeft, CSSValueRight>(state, toCSSPrimitiveValue(value)); |
layer->setXPosition(length); |
if (value.isValuePair()) |
@@ -243,7 +243,7 @@ void CSSToStyleMap::mapFillYPosition(StyleResolverState& state, FillLayer* layer |
if (value.isValuePair()) |
length = toCSSPrimitiveValue(toCSSValuePair(value).second()).convertToLength(state.cssToLengthConversionData()); |
else |
- length = toCSSPrimitiveValue(value).convertToLength(state.cssToLengthConversionData()); |
+ length = StyleBuilderConverter::convertPositionLength<CSSValueTop, CSSValueBottom>(state, toCSSPrimitiveValue(value)); |
layer->setYPosition(length); |
if (value.isValuePair()) |