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

Unified Diff: Source/core/rendering/RenderBlock.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/RenderBlock.cpp
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
index d3a94fee9fb2b4a9c824c8a062ce5d5b8866ac74..afbb32eed64c1b0708f133e64a3936846e1c4dd2 100644
--- a/Source/core/rendering/RenderBlock.cpp
+++ b/Source/core/rendering/RenderBlock.cpp
@@ -1012,7 +1012,7 @@ void RenderBlock::makeChildrenNonInline(RenderObject *insertionPoint)
moveChildrenTo(block, inlineRunStart, child);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
for (RenderObject *c = firstChild(); c; c = c->nextSibling())
ASSERT(!c->isInline());
#endif
@@ -4916,7 +4916,7 @@ bool RenderBlock::recalcOverflowAfterStyleChange()
return !hasOverflowClip();
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
void RenderBlock::checkPositionedObjectsNeedLayout()
{
if (!gPositionedDescendantsMap)
@@ -4931,6 +4931,10 @@ void RenderBlock::checkPositionedObjectsNeedLayout()
}
}
+#endif
+
+#ifndef NDEBUG
+
void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* markedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const RenderObject* obj) const
{
showRenderObject();

Powered by Google App Engine
This is Rietveld 408576698