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

Unified Diff: Source/core/dom/ActiveDOMObject.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/ActiveDOMObject.cpp
diff --git a/Source/core/dom/ActiveDOMObject.cpp b/Source/core/dom/ActiveDOMObject.cpp
index 78e88e8c6e64bdb78c9be3e56fe28db63b23f5fc..59a9d893c18ebf808587fbae3bdcae3fafc9a892 100644
--- a/Source/core/dom/ActiveDOMObject.cpp
+++ b/Source/core/dom/ActiveDOMObject.cpp
@@ -34,7 +34,7 @@ namespace WebCore {
ActiveDOMObject::ActiveDOMObject(ExecutionContext* executionContext)
: ContextLifecycleObserver(executionContext, ActiveDOMObjectType)
, m_pendingActivityCount(0)
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
, m_suspendIfNeededCalled(false)
#endif
{
@@ -58,7 +58,7 @@ ActiveDOMObject::~ActiveDOMObject()
void ActiveDOMObject::suspendIfNeeded()
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
ASSERT(!m_suspendIfNeededCalled);
m_suspendIfNeededCalled = true;
#endif

Powered by Google App Engine
This is Rietveld 408576698