Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
index 874bfaa9fd2724a41b81bf2201d196eed4e61a64..0ce053f14e9bc0a7de70736e823836d8d2d1b83e 100644 |
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp |
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp |
@@ -2055,9 +2055,9 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu |
// RenderBox gives a marginRight() that is the distance between the right-edge of the child box |
// and the right-edge of the containing box, when display == BLOCK. Let's calculate the absolute |
// value of the specified margin-right % instead of relying on RenderBox's marginRight() value. |
- value = minimumValueForLength(marginRight, toRenderBox(renderer)->containingBlockLogicalWidthForContent()); |
+ value = minimumValueForLength(marginRight, toRenderBox(renderer)->containingBlockLogicalWidthForContent()).toFloat(); |
} else { |
- value = toRenderBox(renderer)->marginRight(); |
+ value = toRenderBox(renderer)->marginRight().toFloat(); |
} |
return zoomAdjustedPixelValue(value, *style); |
} |