Chromium Code Reviews| 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..fdb867a36d99a15d80f1be1445095eaf786ec3b3 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; |
|
philipj_slow
2014/04/15 11:37:07
missing space before :
davve
2014/04/15 11:41:27
Done.
|
| + intervals->intervalAt(y + imageRect.y()).unite(IntShapeInterval(startX + imageRect.x(), endX + imageRect.x())); |
| startX = -1; |
| } |
| } |