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

Unified Diff: Source/core/events/EventDispatcher.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/events/EventDispatcher.h ('k') | Source/core/events/EventListenerMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventDispatcher.cpp
diff --git a/Source/core/events/EventDispatcher.cpp b/Source/core/events/EventDispatcher.cpp
index fd777890ffafd9b2936f6b911432bbeaac19c4df..ab30c6134ec6129a5b5a3797f11e78e9aa0f1fa5 100644
--- a/Source/core/events/EventDispatcher.cpp
+++ b/Source/core/events/EventDispatcher.cpp
@@ -53,7 +53,7 @@ bool EventDispatcher::dispatchEvent(Node* node, PassRefPtrWillBeRawPtr<EventDisp
EventDispatcher::EventDispatcher(Node* node, PassRefPtrWillBeRawPtr<Event> event)
: m_node(node)
, m_event(event)
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
, m_eventDispatched(false)
#endif
{
@@ -108,7 +108,7 @@ bool EventDispatcher::dispatch()
{
TRACE_EVENT0("blink", "EventDispatcher::dispatch");
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
ASSERT(!m_eventDispatched);
m_eventDispatched = true;
#endif
« no previous file with comments | « Source/core/events/EventDispatcher.h ('k') | Source/core/events/EventListenerMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698