Index: Source/core/rendering/shapes/Shape.cpp |
diff --git a/Source/core/rendering/shapes/Shape.cpp b/Source/core/rendering/shapes/Shape.cpp |
index 497fdb18dd88bc9e7e0043fa6a5ea0e25a8f24c7..27a5593f3e6ace889359869929d916e418dd4590 100644 |
--- a/Source/core/rendering/shapes/Shape.cpp |
+++ b/Source/core/rendering/shapes/Shape.cpp |
@@ -235,11 +235,11 @@ PassOwnPtr<Shape> Shape::createShape(const BasicShape* basicShape, const LayoutS |
FloatRect logicalRect = physicalRectToLogical(rect, logicalBoxSize.height(), writingMode); |
FloatSize boxSize(boxWidth, boxHeight); |
- FloatRoundedRect::Radii cornerRadii( |
- floatSizeForLengthSize(inset.topLeftRadius(), boxSize), |
- floatSizeForLengthSize(inset.topRightRadius(), boxSize), |
- floatSizeForLengthSize(inset.bottomLeftRadius(), boxSize), |
- floatSizeForLengthSize(inset.bottomRightRadius(), boxSize)); |
+ FloatSize topLeftRadius = physicalSizeToLogical(floatSizeForLengthSize(inset.topLeftRadius(), boxSize), writingMode); |
+ FloatSize topRightRadius = physicalSizeToLogical(floatSizeForLengthSize(inset.topRightRadius(), boxSize), writingMode); |
+ FloatSize bottomLeftRadius = physicalSizeToLogical(floatSizeForLengthSize(inset.bottomLeftRadius(), boxSize), writingMode); |
+ FloatSize bottomRightRadius = physicalSizeToLogical(floatSizeForLengthSize(inset.bottomRightRadius(), boxSize), writingMode); |
+ FloatRoundedRect::Radii cornerRadii(topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius); |
cornerRadii.scale(calcBorderRadiiConstraintScaleFor(logicalRect, cornerRadii)); |