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

Unified Diff: Source/core/events/EventListenerMap.h

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.cpp ('k') | Source/core/events/EventListenerMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventListenerMap.h
diff --git a/Source/core/events/EventListenerMap.h b/Source/core/events/EventListenerMap.h
index 37d72dd3260ed594667623e4f99d1bac8c071927..77a5c665bc7d09d4aef0c0c67d477708e763dea6 100644
--- a/Source/core/events/EventListenerMap.h
+++ b/Source/core/events/EventListenerMap.h
@@ -67,7 +67,7 @@ private:
Vector<std::pair<AtomicString, OwnPtr<EventListenerVector> >, 2> m_entries;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
int m_activeIteratorCount;
#endif
};
@@ -77,7 +77,7 @@ class EventListenerIterator {
public:
EventListenerIterator();
EventListenerIterator(EventTarget*);
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
~EventListenerIterator();
#endif
@@ -89,7 +89,7 @@ private:
unsigned m_index;
};
-#ifdef NDEBUG
+#if !ENABLE(ASSERT)
inline void EventListenerMap::assertNoActiveIterators() { }
#endif
« no previous file with comments | « Source/core/events/EventDispatcher.cpp ('k') | Source/core/events/EventListenerMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698