Index: Source/core/dom/TreeShared.h |
diff --git a/Source/core/dom/TreeShared.h b/Source/core/dom/TreeShared.h |
index 65ef726512bdb0b5c1733245811b68d2d6096499..1f22797aa428045856eaa4886d7d1cf473ce0942 100644 |
--- a/Source/core/dom/TreeShared.h |
+++ b/Source/core/dom/TreeShared.h |
@@ -76,7 +76,7 @@ public: |
ASSERT(!m_adoptionIsRequired); |
NodeType* thisNode = static_cast<NodeType*>(this); |
if (!--m_refCount && !thisNode->hasTreeSharedParent()) { |
-#if !ASSERT_DISABLED |
+#if ASSERT_ENABLED |
m_inRemovedLastRefFunction = true; |
#endif |
thisNode->removedLastRef(); |
@@ -108,7 +108,7 @@ template<typename NodeType> inline void adopted(TreeShared<NodeType>* object) |
return; |
ASSERT_WITH_SECURITY_IMPLICATION(!object->m_deletionHasBegun); |
-#if !ASSERT_DISABLED |
+#if ASSERT_ENABLED |
ASSERT(!object->m_inRemovedLastRefFunction); |
object->m_adoptionIsRequired = false; |
#endif |