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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatRect.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 years, 11 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/platform/geometry/FloatRect.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/FloatRect.cpp b/third_party/WebKit/Source/platform/geometry/FloatRect.cpp
index fe35f3868782610887ffdba35d151e55a2c9fb0c..f276d2eab1a303c409426d80da4e9c5cffbbf89a 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatRect.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatRect.cpp
@@ -60,7 +60,7 @@ FloatRect FloatRect::narrowPrecision(double x,
clampTo<float>(height));
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool FloatRect::mayNotHaveExactIntRectRepresentation() const {
static const float maxExactlyExpressible = 1 << FLT_MANT_DIG;
return fabs(x()) > maxExactlyExpressible ||
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/FloatRect.h ('k') | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698