Index: Source/core/rendering/shapes/RasterShape.cpp |
diff --git a/Source/core/rendering/shapes/RasterShape.cpp b/Source/core/rendering/shapes/RasterShape.cpp |
index 4f2e6fcd94b68aa96e45a06b7b38bebdf28641b5..be9d2eab07574a31f4f6a269e83aa0db91f34b40 100644 |
--- a/Source/core/rendering/shapes/RasterShape.cpp |
+++ b/Source/core/rendering/shapes/RasterShape.cpp |
@@ -118,6 +118,24 @@ void RasterShapeIntervals::initializeBounds() |
} |
} |
+void RasterShapeIntervals::buildBoundsPath(Path& path) const |
+{ |
+ int maxY = bounds().maxY(); |
+ for (int y = bounds().y(); y < maxY; y++) { |
+ if (intervalAt(y).isEmpty()) |
+ continue; |
+ |
+ IntShapeInterval extent = intervalAt(y); |
+ int endY = y + 1; |
+ for (; endY < maxY; endY++) { |
+ if (intervalAt(endY).isEmpty() || intervalAt(endY) != extent) |
+ break; |
+ } |
+ path.addRect(FloatRect(extent.x1(), y, extent.width(), endY - y)); |
+ y = endY - 1; |
+ } |
+} |
+ |
const RasterShapeIntervals& RasterShape::marginIntervals() const |
{ |
ASSERT(shapeMargin() >= 0); |