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

Unified Diff: third_party/WebKit/Source/core/events/GenericEventQueue.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/core/events/GenericEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/events/GenericEventQueue.cpp b/third_party/WebKit/Source/core/events/GenericEventQueue.cpp
index a8b0f84ccc0c35d7803959a81393383de06865ef..60274bdc431ae2afc7224f1d707a79dbfcb294a1 100644
--- a/third_party/WebKit/Source/core/events/GenericEventQueue.cpp
+++ b/third_party/WebKit/Source/core/events/GenericEventQueue.cpp
@@ -31,9 +31,9 @@
namespace blink {
-PassOwnPtrWillBeRawPtr<GenericEventQueue> GenericEventQueue::create(EventTarget* owner)
+RawPtr<GenericEventQueue> GenericEventQueue::create(EventTarget* owner)
{
- return adoptPtrWillBeNoop(new GenericEventQueue(owner));
+ return new GenericEventQueue(owner);
}
GenericEventQueue::GenericEventQueue(EventTarget* owner)
@@ -54,7 +54,7 @@ DEFINE_TRACE(GenericEventQueue)
EventQueue::trace(visitor);
}
-bool GenericEventQueue::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event)
+bool GenericEventQueue::enqueueEvent(RawPtr<Event> event)
{
if (m_isClosed)
return false;
@@ -93,10 +93,10 @@ void GenericEventQueue::timerFired(Timer<GenericEventQueue>*)
ASSERT(!m_timer.isActive());
ASSERT(!m_pendingEvents.isEmpty());
- WillBeHeapVector<RefPtrWillBeMember<Event>> pendingEvents;
+ HeapVector<Member<Event>> pendingEvents;
m_pendingEvents.swap(pendingEvents);
- RefPtrWillBeRawPtr<EventTarget> protect(m_owner.get());
+ RawPtr<EventTarget> protect(m_owner.get());
for (const auto& pendingEvent : pendingEvents) {
Event* event = pendingEvent.get();
EventTarget* target = event->target() ? event->target() : m_owner.get();
« no previous file with comments | « third_party/WebKit/Source/core/events/GenericEventQueue.h ('k') | third_party/WebKit/Source/core/events/GestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698