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

Unified Diff: third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.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/dom/IdTargetObserverRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
index 491950c91424d1c4d27d2b4e87ba8b74dcf5906f..85cdd6c482a43f10e46c49f4469e8fa7ebbfd518 100644
--- a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
@@ -29,9 +29,9 @@
namespace blink {
-PassOwnPtrWillBeRawPtr<IdTargetObserverRegistry> IdTargetObserverRegistry::create()
+RawPtr<IdTargetObserverRegistry> IdTargetObserverRegistry::create()
{
- return adoptPtrWillBeNoop(new IdTargetObserverRegistry());
+ return new IdTargetObserverRegistry();
}
DEFINE_TRACE(IdTargetObserverRegistry)
@@ -49,7 +49,7 @@ void IdTargetObserverRegistry::addObserver(const AtomicString& id, IdTargetObser
IdToObserverSetMap::AddResult result = m_registry.add(id.impl(), nullptr);
if (result.isNewEntry)
- result.storedValue->value = adoptPtrWillBeNoop(new ObserverSet());
+ result.storedValue->value = new ObserverSet();
result.storedValue->value->add(observer);
}
@@ -76,7 +76,7 @@ void IdTargetObserverRegistry::notifyObserversInternal(const AtomicString& id)
if (!m_notifyingObserversInSet)
return;
- WillBeHeapVector<RawPtrWillBeMember<IdTargetObserver>> copy;
+ HeapVector<Member<IdTargetObserver>> copy;
copyToVector(*m_notifyingObserversInSet, copy);
for (const auto& observer : copy) {
if (m_notifyingObserversInSet->contains(observer))

Powered by Google App Engine
This is Rietveld 408576698