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

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: Rebased. 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
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/core/rendering/SubtreeLayoutScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index df2045fb07474211b9b57994d8143a6785c5347d..ff264ee54e550a4df80a8aeb2cea89675c743bd2 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();
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/core/rendering/SubtreeLayoutScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698