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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/BoxShape.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/BoxShape.cpp
diff --git a/third_party/WebKit/Source/core/layout/shapes/BoxShape.cpp b/third_party/WebKit/Source/core/layout/shapes/BoxShape.cpp
index bac2b8633abf3047be7168d344cd066472678959..9936413c9586c04921046a683080517d489a1d98 100644
--- a/third_party/WebKit/Source/core/layout/shapes/BoxShape.cpp
+++ b/third_party/WebKit/Source/core/layout/shapes/BoxShape.cpp
@@ -96,7 +96,7 @@ LineSegment BoxShape::getExcludedInterval(LayoutUnit logicalTop,
x2 = std::max<float>(x2, maxXIntercept);
}
- ASSERT(x2 >= x1);
+ DCHECK_GE(x2, x1);
return LineSegment(x1, x2);
}

Powered by Google App Engine
This is Rietveld 408576698