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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index 0c32889e8dcef547e8b2ea050c69cbb050c09a6d..8bb87f82ba076c9462fefd49c2bfed9cf3d04c2e 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -172,12 +172,12 @@ void RenderView::layoutContent()
if (RuntimeEnabledFeatures::dialogElementEnabled())
positionDialogs();
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
checkLayoutState();
#endif
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
void RenderView::checkLayoutState()
{
ASSERT(!m_layoutState->next());
@@ -254,7 +254,7 @@ void RenderView::layout()
layoutContent();
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
checkLayoutState();
#endif
clearNeedsLayout();

Powered by Google App Engine
This is Rietveld 408576698