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

Unified Diff: Source/core/dom/ChildFrameDisconnector.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/css/parser/CSSPropertyParser.cpp ('k') | Source/core/dom/ChildListMutationScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ChildFrameDisconnector.cpp
diff --git a/Source/core/dom/ChildFrameDisconnector.cpp b/Source/core/dom/ChildFrameDisconnector.cpp
index 555da1cd3b97be61a677e619d6d134d32cbb3571..3882301fb6838cb87552449ff3d7dc95591aca23 100644
--- a/Source/core/dom/ChildFrameDisconnector.cpp
+++ b/Source/core/dom/ChildFrameDisconnector.cpp
@@ -12,13 +12,13 @@
namespace WebCore {
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
static unsigned checkConnectedSubframeCountIsConsistent(Node&);
#endif
void ChildFrameDisconnector::disconnect(DisconnectPolicy policy)
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
checkConnectedSubframeCountIsConsistent(m_root);
#endif
@@ -72,7 +72,7 @@ void ChildFrameDisconnector::collectFrameOwners(ElementShadow& shadow)
collectFrameOwners(*root);
}
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
static unsigned checkConnectedSubframeCountIsConsistent(Node& node)
{
unsigned count = 0;
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/dom/ChildListMutationScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698