| Index: third_party/WebKit/Source/core/layout/shapes/PolygonShape.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/shapes/PolygonShape.cpp b/third_party/WebKit/Source/core/layout/shapes/PolygonShape.cpp
|
| index 26dbd6b11cbd2a6404332a3018107217b002d662..39e1b082a930e33a43866959c762eb251c4ad32c 100644
|
| --- a/third_party/WebKit/Source/core/layout/shapes/PolygonShape.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/shapes/PolygonShape.cpp
|
| @@ -54,7 +54,8 @@ static inline bool overlapsYRange(const FloatRect& rect, float y1, float y2) {
|
| }
|
|
|
| float OffsetPolygonEdge::xIntercept(float y) const {
|
| - ASSERT(y >= minY() && y <= maxY());
|
| + DCHECK_GE(y, minY());
|
| + DCHECK_LE(y, maxY());
|
|
|
| if (vertex1().y() == vertex2().y() || vertex1().x() == vertex2().x())
|
| return minX();
|
| @@ -95,7 +96,7 @@ FloatShapeInterval OffsetPolygonEdge::clippedEdgeXRange(float y1,
|
| }
|
|
|
| static float circleXIntercept(float y, float radius) {
|
| - ASSERT(radius > 0);
|
| + DCHECK_GT(radius, 0);
|
| return radius * sqrt(1 - (y * y) / (radius * radius));
|
| }
|
|
|
|
|