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

Unified Diff: Source/core/frame/EventHandlerRegistry.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/frame/EventHandlerRegistry.cpp
diff --git a/Source/core/frame/EventHandlerRegistry.cpp b/Source/core/frame/EventHandlerRegistry.cpp
index 014e94eac5b7b684364bd1dd5fa8e3c822d39ea2..adc9b56eac2d9cf1d23f6748edc51765456a4a8d 100644
--- a/Source/core/frame/EventHandlerRegistry.cpp
+++ b/Source/core/frame/EventHandlerRegistry.cpp
@@ -30,7 +30,7 @@ bool EventHandlerRegistry::eventTypeToClass(const AtomicString& eventType, Event
*result = ScrollEvent;
} else if (eventType == EventTypeNames::wheel || eventType == EventTypeNames::mousewheel) {
*result = WheelEvent;
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
} else if (eventType == EventTypeNames::load || eventType == EventTypeNames::mousemove || eventType == EventTypeNames::touchstart) {
*result = EventsForTesting;
#endif
@@ -167,7 +167,7 @@ void EventHandlerRegistry::notifyHasHandlersChanged(EventHandlerClass handlerCla
if (scrollingCoordinator)
scrollingCoordinator->updateHaveWheelEventHandlers();
break;
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
case EventsForTesting:
break;
#endif
@@ -231,7 +231,7 @@ void EventHandlerRegistry::documentDetached(Document& document)
void EventHandlerRegistry::checkConsistency() const
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
for (size_t i = 0; i < EventHandlerClassCount; ++i) {
EventHandlerClass handlerClass = static_cast<EventHandlerClass>(i);
const EventTargetSet* targets = &m_targets[handlerClass];
@@ -249,7 +249,7 @@ void EventHandlerRegistry::checkConsistency() const
}
}
}
-#endif // ASSERT_ENABLED
+#endif // ENABLE(ASSERT)
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698