Index: Source/bindings/v8/custom/V8InjectedScriptManager.cpp |
diff --git a/Source/bindings/v8/custom/V8InjectedScriptManager.cpp b/Source/bindings/v8/custom/V8InjectedScriptManager.cpp |
index 19a15dc5f695423c8dfa3d4b8eefc4e680e1a8d0..6fbaec05ad524e41f1528ba574569f80377f3b17 100644 |
--- a/Source/bindings/v8/custom/V8InjectedScriptManager.cpp |
+++ b/Source/bindings/v8/custom/V8InjectedScriptManager.cpp |
@@ -48,7 +48,7 @@ namespace WebCore { |
struct InjectedScriptManager::CallbackData { |
ScopedPersistent<v8::Object> handle; |
- RefPtr<InjectedScriptHost> host; |
+ RefPtrWillBePersistent<InjectedScriptHost> host; |
}; |
static v8::Local<v8::Object> createInjectedScriptHostV8Wrapper(InjectedScriptHost* host, v8::Isolate* isolate) |
@@ -63,7 +63,7 @@ static v8::Local<v8::Object> createInjectedScriptHostV8Wrapper(InjectedScriptHos |
// Avoid setting the wrapper if allocation failed. |
return v8::Local<v8::Object>(); |
} |
- V8DOMWrapper::setNativeInfo(instanceTemplate, &V8InjectedScriptHost::wrapperTypeInfo, host); |
+ V8DOMWrapper::setNativeInfoForHiddenWrapper(instanceTemplate, &V8InjectedScriptHost::wrapperTypeInfo, host); |
// Create a weak reference to the v8 wrapper of InspectorBackend to deref |
// InspectorBackend when the wrapper is garbage collected. |
InjectedScriptManager::CallbackData* data = new InjectedScriptManager::CallbackData; |