Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 474912b54c8a4017c0b495350d3fe5681082a69e..ad0db7a8218ae9d8e894a1e1eb4798ff47a6de0a 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -3294,13 +3294,13 @@ v8::Handle<v8::Object> Element::wrapCustomElement(v8::Handle<v8::Object> creatio |
CustomElementBinding* binding = perContextData->customElementBinding(customElementDefinition()); |
const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
- v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, wrapperType, toInternalPointer(), isolate); |
+ v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, wrapperType, toScriptWrappableBase(), isolate); |
if (wrapper.IsEmpty()) |
return v8::Handle<v8::Object>(); |
wrapper->SetPrototype(binding->prototype()); |
- wrapperType->refObject(toInternalPointer()); |
+ wrapperType->refObject(toScriptWrappableBase()); |
V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapper, isolate); |
return wrapper; |
} |