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 |