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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/ShapeInterval.h

Issue 2770203002: Replace DCHECK with DCHECK_op and split some DCHECKs wherever necessary (Closed)
Patch Set: Add few more Created 3 years, 8 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/ShapeInterval.h
diff --git a/third_party/WebKit/Source/core/layout/shapes/ShapeInterval.h b/third_party/WebKit/Source/core/layout/shapes/ShapeInterval.h
index b55f2e672c0ece78d0019d753b49c45ca261b92e..e21ef89b6a7ca7c8986ffc1625289ccc23f592b6 100644
--- a/third_party/WebKit/Source/core/layout/shapes/ShapeInterval.h
+++ b/third_party/WebKit/Source/core/layout/shapes/ShapeInterval.h
@@ -45,7 +45,7 @@ class ShapeInterval {
DCHECK(isUndefined());
}
- ShapeInterval(T x1, T x2) : m_x1(x1), m_x2(x2) { DCHECK(x2 >= x1); }
+ ShapeInterval(T x1, T x2) : m_x1(x1), m_x2(x2) { DCHECK_GE(x2, x1); }
bool isUndefined() const { return m_x2 < m_x1; }
T x1() const { return isUndefined() ? 0 : m_x1; }

Powered by Google App Engine
This is Rietveld 408576698