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

Unified Diff: third_party/WebKit/Source/core/events/EventListenerMap.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, 10 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/EventListenerMap.cpp
diff --git a/third_party/WebKit/Source/core/events/EventListenerMap.cpp b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
index bc20b40bd16779a6d68f7fb1501baa193d06c5e2..1a25736cd2588518558794f1e9a9ae2d65feb0af 100644
--- a/third_party/WebKit/Source/core/events/EventListenerMap.cpp
+++ b/third_party/WebKit/Source/core/events/EventListenerMap.cpp
@@ -106,7 +106,7 @@ Vector<AtomicString> EventListenerMap::eventTypes() const
return types;
}
-static bool addListenerToVector(EventListenerVector* vector, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& options)
+static bool addListenerToVector(EventListenerVector* vector, RawPtr<EventListener> listener, const EventListenerOptions& options)
{
RegisteredEventListener registeredListener(listener, options);
@@ -117,7 +117,7 @@ static bool addListenerToVector(EventListenerVector* vector, PassRefPtrWillBeRaw
return true;
}
-bool EventListenerMap::add(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& options)
+bool EventListenerMap::add(const AtomicString& eventType, RawPtr<EventListener> listener, const EventListenerOptions& options)
{
assertNoActiveIterators();
@@ -126,7 +126,7 @@ bool EventListenerMap::add(const AtomicString& eventType, PassRefPtrWillBeRawPtr
return addListenerToVector(entry.second.get(), listener, options);
}
- m_entries.append(std::make_pair(eventType, adoptPtrWillBeNoop(new EventListenerVector)));
+ m_entries.append(std::make_pair(eventType, (new EventListenerVector)));
return addListenerToVector(m_entries.last().second.get(), listener, options);
}

Powered by Google App Engine
This is Rietveld 408576698