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

Unified Diff: Source/core/dom/Node.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/dom/Node.h ('k') | Source/core/dom/TreeScopeAdopter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/TreeScopeAdopter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698