Index: Source/core/rendering/shapes/RectangleShape.cpp |
diff --git a/Source/core/rendering/shapes/RectangleShape.cpp b/Source/core/rendering/shapes/RectangleShape.cpp |
index 5cf74cbc474302078607f1746082b3c063fafec1..a1af9666d926fba924ba252860721e59d8662a05 100644 |
--- a/Source/core/rendering/shapes/RectangleShape.cpp |
+++ b/Source/core/rendering/shapes/RectangleShape.cpp |
@@ -88,4 +88,11 @@ void RectangleShape::getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logi |
result.append(LineSegment(x1, x2)); |
} |
+void RectangleShape::buildDisplayPaths(DisplayPaths& paths) const |
+{ |
+ paths.shape.addRoundedRect(m_bounds, FloatSize(m_radii.width(), m_radii.height())); |
rwlbuis
2014/04/15 15:48:21
Looks like m_radii is a FloatSize, so you can just
Habib Virji
2014/04/17 15:43:47
Done.
|
+ if (shapeMargin()) |
+ paths.marginShape.addRoundedRect(shapeMarginBounds(), FloatSize(m_radii.width() + shapeMargin(), m_radii.height() + shapeMargin())); |
+} |
+ |
} // namespace WebCore |