Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 02d27c174078b8931bc396cccfbad8239a448ef6..e58ca2fa873a9f2ce3970fff256a04d6e417f759 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -1063,8 +1063,7 @@ FloatPoint RenderLayer::perspectiveOrigin() const |
const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect(); |
RenderStyle* style = renderer()->style(); |
- return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox.width()), |
- floatValueForLength(style->perspectiveOriginY(), borderBox.height())); |
+ return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox.width().toFloat()), floatValueForLength(style->perspectiveOriginY(), borderBox.height().toFloat())); |
} |
static inline bool isFixedPositionedContainer(RenderLayer* layer) |