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

Unified Diff: Source/core/events/ScopedEventQueue.cpp

Issue 333623002: Oilpan: Prepare to move EventDispatchMediator to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/ScopedEventQueue.h ('k') | Source/core/events/TouchEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/ScopedEventQueue.cpp
diff --git a/Source/core/events/ScopedEventQueue.cpp b/Source/core/events/ScopedEventQueue.cpp
index 459816941b03274762d153e5ac741ea08eefc904..04a6aa028648d93c2e3e60eaba10ea2f46b80de2 100644
--- a/Source/core/events/ScopedEventQueue.cpp
+++ b/Source/core/events/ScopedEventQueue.cpp
@@ -59,7 +59,7 @@ void ScopedEventQueue::initialize()
s_instance = instance.leakPtr();
}
-void ScopedEventQueue::enqueueEventDispatchMediator(PassRefPtr<EventDispatchMediator> mediator)
+void ScopedEventQueue::enqueueEventDispatchMediator(PassRefPtrWillBeRawPtr<EventDispatchMediator> mediator)
{
if (m_scopingLevel)
m_queuedEventDispatchMediators.append(mediator);
@@ -69,14 +69,14 @@ void ScopedEventQueue::enqueueEventDispatchMediator(PassRefPtr<EventDispatchMedi
void ScopedEventQueue::dispatchAllEvents()
{
- Vector<RefPtr<EventDispatchMediator> > queuedEventDispatchMediators;
+ WillBeHeapVector<RefPtrWillBeMember<EventDispatchMediator> > queuedEventDispatchMediators;
queuedEventDispatchMediators.swap(m_queuedEventDispatchMediators);
for (size_t i = 0; i < queuedEventDispatchMediators.size(); i++)
dispatchEvent(queuedEventDispatchMediators[i].release());
}
-void ScopedEventQueue::dispatchEvent(PassRefPtr<EventDispatchMediator> mediator) const
+void ScopedEventQueue::dispatchEvent(PassRefPtrWillBeRawPtr<EventDispatchMediator> mediator) const
{
ASSERT(mediator->event()->target());
Node* node = mediator->event()->target()->toNode();
« no previous file with comments | « Source/core/events/ScopedEventQueue.h ('k') | Source/core/events/TouchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698