Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index bc68036ee10eea60048c1b747cc8f9b7498cc512..39ba29e12c0830548612d00f7f6a24ea9900e438 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -999,7 +999,7 @@ void Node::attach(const AttachContext&) |
cache->updateCacheAfterNodeIsAttached(this); |
} |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
static Node* detachingNode; |
bool Node::inDetach() const |
@@ -1013,7 +1013,7 @@ void Node::detach(const AttachContext& context) |
ASSERT(document().lifecycle().stateAllowsDetach()); |
DocumentLifecycle::DetachScope willDetach(document().lifecycle()); |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
ASSERT(!detachingNode); |
detachingNode = this; |
#endif |
@@ -1043,7 +1043,7 @@ void Node::detach(const AttachContext& context) |
clearChildNeedsStyleInvalidation(); |
clearNeedsStyleInvalidation(); |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
detachingNode = 0; |
#endif |
} |