Index: Source/bindings/core/v8/V8WindowShell.cpp |
diff --git a/Source/bindings/core/v8/V8WindowShell.cpp b/Source/bindings/core/v8/V8WindowShell.cpp |
index 63b11c484eb91271701f1dea1563e1d3af94003f..f653af25e29d0e06b480e021eb88c8de01f0a6e1 100644 |
--- a/Source/bindings/core/v8/V8WindowShell.cpp |
+++ b/Source/bindings/core/v8/V8WindowShell.cpp |
@@ -284,7 +284,7 @@ bool V8WindowShell::installDOMWindow() |
if (windowWrapper.IsEmpty()) |
return false; |
- V8DOMWrapper::setNativeInfoForHiddenWrapper(v8::Handle<v8::Object>::Cast(windowWrapper->GetPrototype()), &V8Window::wrapperTypeInfo, window); |
+ V8DOMWrapper::setNativeInfoForHiddenWrapper(v8::Handle<v8::Object>::Cast(windowWrapper->GetPrototype()), &V8Window::wrapperTypeInfo, V8Window::toInternalPointer(window)); |
// Install the windowWrapper as the prototype of the innerGlobalObject. |
// The full structure of the global object is as follows: |
@@ -307,7 +307,7 @@ bool V8WindowShell::installDOMWindow() |
// views of the LocalDOMWindow will die together once that wrapper clears the persistent |
// reference. |
v8::Handle<v8::Object> innerGlobalObject = toInnerGlobalObject(m_scriptState->context()); |
- V8DOMWrapper::setNativeInfoForHiddenWrapper(innerGlobalObject, &V8Window::wrapperTypeInfo, window); |
+ V8DOMWrapper::setNativeInfoForHiddenWrapper(innerGlobalObject, &V8Window::wrapperTypeInfo, V8Window::toInternalPointer(window)); |
innerGlobalObject->SetPrototype(windowWrapper); |
V8DOMWrapper::associateObjectWithWrapper<V8Window>(PassRefPtrWillBeRawPtr<LocalDOMWindow>(window), &V8Window::wrapperTypeInfo, windowWrapper, m_isolate, WrapperConfiguration::Dependent); |
V8Window::installPerContextEnabledProperties(windowWrapper, window, m_isolate); |