Index: Source/core/rendering/shapes/Shape.cpp |
diff --git a/Source/core/rendering/shapes/Shape.cpp b/Source/core/rendering/shapes/Shape.cpp |
index 7c1f5276af173e433225167f04c3a5ce6f6c6ccd..4cfdbdafe996efcdeceaeb0e8c7c5f29ed50bae6 100644 |
--- a/Source/core/rendering/shapes/Shape.cpp |
+++ b/Source/core/rendering/shapes/Shape.cpp |
@@ -202,7 +202,8 @@ PassOwnPtr<Shape> Shape::createRasterShape(Image* image, float threshold, const |
if (startX == -1 && alphaAboveThreshold) { |
startX = x; |
} else if (startX != -1 && (!alphaAboveThreshold || x == imageRect.width() - 1)) { |
- intervals->intervalAt(y + imageRect.y()).unite(IntShapeInterval(startX + imageRect.x(), x + imageRect.x())); |
+ int endX = alphaAboveThreshold ? x + 1 : x; |
+ intervals->intervalAt(y + imageRect.y()).unite(IntShapeInterval(startX + imageRect.x(), endX + imageRect.x())); |
startX = -1; |
} |
} |