Index: Source/core/dom/TreeScopeAdopter.cpp |
diff --git a/Source/core/dom/TreeScopeAdopter.cpp b/Source/core/dom/TreeScopeAdopter.cpp |
index 0b21aff0bca4d03884072623e0a71af3543ae683..a0d892472ecc6f73be2b1b4d89373cc1e0918c90 100644 |
--- a/Source/core/dom/TreeScopeAdopter.cpp |
+++ b/Source/core/dom/TreeScopeAdopter.cpp |
@@ -93,7 +93,7 @@ void TreeScopeAdopter::moveTreeToNewDocument(Node& root, Document& oldDocument, |
} |
} |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
static bool didMoveToNewDocumentWasCalled = false; |
static Document* oldDocumentDidMoveToNewDocumentWasCalledWith = 0; |
@@ -131,7 +131,7 @@ inline void TreeScopeAdopter::moveNodeToNewDocument(Node& node, Document& oldDoc |
if (node.isShadowRoot()) |
toShadowRoot(node).setDocument(newDocument); |
-#ifndef NDEBUG |
+#if ENABLE(ASSERT) |
didMoveToNewDocumentWasCalled = false; |
oldDocumentDidMoveToNewDocumentWasCalledWith = &oldDocument; |
#endif |