Index: Source/core/rendering/shapes/PolygonShape.cpp |
diff --git a/Source/core/rendering/shapes/PolygonShape.cpp b/Source/core/rendering/shapes/PolygonShape.cpp |
index 17f9df0e8a36a08f01d68060041994a731c6f733..98cd8367e1ee50e4a5f00b800fadd90f177db035 100644 |
--- a/Source/core/rendering/shapes/PolygonShape.cpp |
+++ b/Source/core/rendering/shapes/PolygonShape.cpp |
@@ -69,7 +69,7 @@ float OffsetPolygonEdge::xIntercept(float y) const |
FloatShapeInterval OffsetPolygonEdge::clippedEdgeXRange(float y1, float y2) const |
{ |
- if (!overlapsYRange(y1, y2) || (y1 == maxY() && vertex2().y() < vertex1().y())) |
+ if (!overlapsYRange(y1, y2) || (y1 == maxY() && minY() <= y1) || (y2 == minY() && maxY() >= y2)) |
return FloatShapeInterval(); |
if (isWithinYRange(y1, y2)) |