Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (Closed)
Patch Set: Rebase with latest Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp b/third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp
index 4e6fb896d94269febf458e9c1caa4d8ed55e88c5..4a4a535dbc83fa3fe0d873430223c31242bc9d79 100644
--- a/third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp
@@ -34,12 +34,12 @@
namespace blink {
static inline float ellipseXIntercept(float y, float rx, float ry) {
- ASSERT(ry > 0);
+ DCHECK_GT(ry, 0);
return rx * sqrt(1 - (y * y) / (ry * ry));
}
FloatRect RectangleShape::shapeMarginBounds() const {
- ASSERT(shapeMargin() >= 0);
+ DCHECK_GE(shapeMargin(), 0);
if (!shapeMargin())
return m_bounds;
« no previous file with comments | « third_party/WebKit/Source/core/layout/shapes/RasterShape.cpp ('k') | third_party/WebKit/Source/core/layout/shapes/Shape.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698