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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (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/bindings/core/v8/custom/V8MutationObserverCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp
index fa1e7514f3137996d010315fb8d3b8b01442d845..4ef905c5bea5b0c8330c054e14ffb277f1fc3332 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp
@@ -59,8 +59,8 @@ void V8MutationObserver::constructorCustom(const v8::FunctionCallbackInfo<v8::Va
v8::Local<v8::Object> wrapper = info.Holder();
- OwnPtrWillBeRawPtr<MutationCallback> callback = V8MutationCallback::create(v8::Local<v8::Function>::Cast(arg), wrapper, ScriptState::current(info.GetIsolate()));
- RefPtrWillBeRawPtr<MutationObserver> observer = MutationObserver::create(callback.release());
+ RawPtr<MutationCallback> callback = V8MutationCallback::create(v8::Local<v8::Function>::Cast(arg), wrapper, ScriptState::current(info.GetIsolate()));
+ RawPtr<MutationObserver> observer = MutationObserver::create(callback.release());
v8SetReturnValue(info, V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), observer.get(), &wrapperTypeInfo, wrapper));
}
@@ -68,8 +68,8 @@ void V8MutationObserver::constructorCustom(const v8::FunctionCallbackInfo<v8::Va
void V8MutationObserver::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper)
{
MutationObserver* observer = scriptWrappable->toImpl<MutationObserver>();
- WillBeHeapHashSet<RawPtrWillBeMember<Node>> observedNodes = observer->getObservedNodes();
- for (WillBeHeapHashSet<RawPtrWillBeMember<Node>>::iterator it = observedNodes.begin(); it != observedNodes.end(); ++it) {
+ HeapHashSet<Member<Node>> observedNodes = observer->getObservedNodes();
+ for (HeapHashSet<Member<Node>>::iterator it = observedNodes.begin(); it != observedNodes.end(); ++it) {
v8::UniqueId id(reinterpret_cast<intptr_t>(V8GCController::opaqueRootForGC(isolate, *it)));
isolate->SetReferenceFromGroup(id, wrapper);
}

Powered by Google App Engine
This is Rietveld 408576698