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

Unified Diff: Source/core/dom/TreeShared.h

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/ScriptForbiddenScope.cpp ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/dom/ScriptForbiddenScope.cpp ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698