X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Frendering%2Fshapes%2FPolygonShape.cpp;h=79bd3bdc082f32c1808e6c24521dfd03d70cca0f;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=02e239a09e50e1222401fa9db359f1c4ed7fcfee;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/rendering/shapes/PolygonShape.cpp b/src/third_party/WebKit/Source/core/rendering/shapes/PolygonShape.cpp index 02e239a..79bd3bd 100644 --- a/src/third_party/WebKit/Source/core/rendering/shapes/PolygonShape.cpp +++ b/src/third_party/WebKit/Source/core/rendering/shapes/PolygonShape.cpp @@ -100,7 +100,7 @@ static float circleXIntercept(float y, float radius) static FloatShapeInterval clippedCircleXRange(const FloatPoint& center, float radius, float y1, float y2) { - if (y1 > center.y() + radius || y2 < center.y() - radius) + if (y1 >= center.y() + radius || y2 <= center.y() - radius) return FloatShapeInterval(); if (center.y() >= y1 && center.y() <= y2) @@ -143,6 +143,7 @@ LineSegment PolygonShape::getExcludedInterval(LayoutUnit logicalTop, LayoutUnit excludedInterval.unite(OffsetPolygonEdge(edge, outwardEdgeNormal(edge) * shapeMargin()).clippedEdgeXRange(y1, y2)); excludedInterval.unite(OffsetPolygonEdge(edge, inwardEdgeNormal(edge) * shapeMargin()).clippedEdgeXRange(y1, y2)); excludedInterval.unite(clippedCircleXRange(edge.vertex1(), shapeMargin(), y1, y2)); + excludedInterval.unite(clippedCircleXRange(edge.vertex2(), shapeMargin(), y1, y2)); } }