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

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

Issue 320253002: Oilpan: Prepare to move ImageLoader and its subclasses to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 | « no previous file | Source/core/html/HTMLEmbedElement.cpp » ('j') | Source/core/loader/ImageLoader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/EventSender.h
diff --git a/Source/core/events/EventSender.h b/Source/core/events/EventSender.h
index 8a8cfd4d0523f085b4cd0691cdad66897bba020b..b5da763e59b6db3b624e8bef9636985cf6fee7dd 100644
--- a/Source/core/events/EventSender.h
+++ b/Source/core/events/EventSender.h
@@ -54,8 +54,8 @@ private:
AtomicString m_eventType;
Timer<EventSender<T> > m_timer;
- Vector<T*> m_dispatchSoonList;
- Vector<T*> m_dispatchingList;
+ WillBePersistentHeapVector<RawPtrWillBeMember<T> > m_dispatchSoonList;
+ WillBePersistentHeapVector<RawPtrWillBeMember<T> > m_dispatchingList;
};
template<typename T> EventSender<T>::EventSender(const AtomicString& eventType)
@@ -78,12 +78,12 @@ template<typename T> void EventSender<T>::cancelEvent(T* sender)
size_t size = m_dispatchSoonList.size();
for (size_t i = 0; i < size; ++i) {
if (m_dispatchSoonList[i] == sender)
- m_dispatchSoonList[i] = 0;
+ m_dispatchSoonList[i] = nullptr;
}
size = m_dispatchingList.size();
for (size_t i = 0; i < size; ++i) {
if (m_dispatchingList[i] == sender)
- m_dispatchingList[i] = 0;
+ m_dispatchingList[i] = nullptr;
}
}
@@ -101,7 +101,7 @@ template<typename T> void EventSender<T>::dispatchPendingEvents()
size_t size = m_dispatchingList.size();
for (size_t i = 0; i < size; ++i) {
if (T* sender = m_dispatchingList[i]) {
- m_dispatchingList[i] = 0;
+ m_dispatchingList[i] = nullptr;
sender->dispatchPendingEvent(this);
}
}
« no previous file with comments | « no previous file | Source/core/html/HTMLEmbedElement.cpp » ('j') | Source/core/loader/ImageLoader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698