Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
index ee643adfd35df8c9bb36db28e80313605b8cffb3..c05f07e0a4cdb6180a66f988f54c81e54fe9dad2 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); |
} |