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

Unified Diff: Source/core/rendering/InlineFlowBox.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/InlineFlowBox.h ('k') | Source/core/rendering/RenderBlock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/InlineFlowBox.cpp
diff --git a/Source/core/rendering/InlineFlowBox.cpp b/Source/core/rendering/InlineFlowBox.cpp
index b8a12f9a789431dba6ee374b11d1afd914ba3c7d..ee5bcc117ed7452ea87822743b100800b0fc5c20 100644
--- a/Source/core/rendering/InlineFlowBox.cpp
+++ b/Source/core/rendering/InlineFlowBox.cpp
@@ -48,7 +48,7 @@ struct SameSizeAsInlineFlowBox : public InlineBox {
COMPILE_ASSERT(sizeof(InlineFlowBox) == sizeof(SameSizeAsInlineFlowBox), InlineFlowBox_should_stay_small);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
InlineFlowBox::~InlineFlowBox()
{
@@ -206,13 +206,13 @@ void InlineFlowBox::deleteLine()
while (child) {
ASSERT(this == child->parent());
next = child->nextOnLine();
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
child->setParent(0);
#endif
child->deleteLine();
child = next;
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_firstChild = 0;
m_lastChild = 0;
#endif
@@ -1651,6 +1651,9 @@ void InlineFlowBox::showLineTreeAndMark(const InlineBox* markedBox1, const char*
box->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLabel2, obj, depth + 1);
}
+#endif
+
+#if ENABLE(ASSERT)
void InlineFlowBox::checkConsistency() const
{
#ifdef CHECK_CONSISTENCY
« no previous file with comments | « Source/core/rendering/InlineFlowBox.h ('k') | Source/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698