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

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

Issue 1878943003: Remove RawPtr from bindings/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 4ef905c5bea5b0c8330c054e14ffb277f1fc3332..49a8b3a0525a17b44e08c4c02fe52e56bc6c3076 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8MutationObserverCustom.cpp
@@ -59,10 +59,10 @@ void V8MutationObserver::constructorCustom(const v8::FunctionCallbackInfo<v8::Va
v8::Local<v8::Object> wrapper = info.Holder();
- RawPtr<MutationCallback> callback = V8MutationCallback::create(v8::Local<v8::Function>::Cast(arg), wrapper, ScriptState::current(info.GetIsolate()));
- RawPtr<MutationObserver> observer = MutationObserver::create(callback.release());
+ MutationCallback* callback = V8MutationCallback::create(v8::Local<v8::Function>::Cast(arg), wrapper, ScriptState::current(info.GetIsolate()));
+ MutationObserver* observer = MutationObserver::create(callback);
- v8SetReturnValue(info, V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), observer.get(), &wrapperTypeInfo, wrapper));
+ v8SetReturnValue(info, V8DOMWrapper::associateObjectWithWrapper(info.GetIsolate(), observer, &wrapperTypeInfo, wrapper));
}
void V8MutationObserver::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper)

Powered by Google App Engine
This is Rietveld 408576698