Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 866bdeda65440203d03980fc24b8636800b622c3..ac3d14065363a169bfbaab9e2a1207145b4f692b 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -5771,12 +5771,12 @@ v8::Handle<v8::Object> Document::wrap(v8::Handle<v8::Object> creationContext, v8 |
return wrapper; |
} |
- v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, wrapperType, toInternalPointer(), isolate); |
+ v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, wrapperType, toScriptWrappableBase(), isolate); |
if (UNLIKELY(wrapper.IsEmpty())) |
return wrapper; |
wrapperType->installConditionallyEnabledProperties(wrapper, isolate); |
- wrapperType->refObject(toInternalPointer()); |
+ wrapperType->refObject(toScriptWrappableBase()); |
V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapper, isolate); |
DOMWrapperWorld& world = DOMWrapperWorld::current(isolate); |