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

Unified Diff: Source/core/dom/ContainerNode.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. 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
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index 6d8dc594f20539c21e4f8d93fbd9c4eee9d1dbf5..5aad514a1910483415c10a66de36d2b2049bf7fb 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -60,7 +60,7 @@ using namespace HTMLNames;
static void dispatchChildInsertionEvents(Node&);
static void dispatchChildRemovalEvents(Node&);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
unsigned NoEventDispatchAssertion::s_count = 0;
#endif
@@ -486,7 +486,7 @@ void ContainerNode::addChildNodesToDeletionQueue(Node*& head, Node*& tail, Conta
next->setPreviousSibling(0);
if (!n->refCount()) {
-#if SECURITY_ASSERT_ENABLED
+#if ENABLE(SECURITY_ASSERT)
n->m_deletionHasBegun = true;
#endif
// Add the node to the list of nodes to be deleted.
@@ -1377,7 +1377,7 @@ Element* ContainerNode::getElementById(const AtomicString& id) const
return 0;
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
bool childAttachedAllowedWhenAttachingChildren(ContainerNode* node)
{
if (node->isShadowRoot())

Powered by Google App Engine
This is Rietveld 408576698