Index: Source/core/events/DOMWindowEventQueue.cpp |
diff --git a/Source/core/events/DOMWindowEventQueue.cpp b/Source/core/events/DOMWindowEventQueue.cpp |
index e18530c72a03d3d07004bf3eac0f6e19f441c61f..354a8c15ce0289350b4b745d2a9100b00ad37cbe 100644 |
--- a/Source/core/events/DOMWindowEventQueue.cpp |
+++ b/Source/core/events/DOMWindowEventQueue.cpp |
@@ -102,8 +102,8 @@ void DOMWindowEventQueue::pendingEventTimerFired() |
ASSERT(!m_queuedEvents.isEmpty()); |
// Insert a marker for where we should stop. |
- ASSERT(!m_queuedEvents.contains(0)); |
- bool wasAdded = m_queuedEvents.add(0).isNewEntry; |
+ ASSERT(!m_queuedEvents.contains(nullptr)); |
+ bool wasAdded = m_queuedEvents.add(nullptr).isNewEntry; |
ASSERT_UNUSED(wasAdded, wasAdded); // It should not have already been in the list. |
RefPtr<DOMWindowEventQueue> protector(this); |
@@ -122,7 +122,7 @@ void DOMWindowEventQueue::dispatchEvent(PassRefPtr<Event> event) |
{ |
EventTarget* eventTarget = event->target(); |
if (eventTarget->toDOMWindow()) |
- eventTarget->toDOMWindow()->dispatchEvent(event, 0); |
+ eventTarget->toDOMWindow()->dispatchEvent(event, nullptr); |
else |
eventTarget->dispatchEvent(event); |
} |