Index: Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp b/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp |
index 5b538842f816de4f4c1ae32608113ae30a4b105d..2730cce547b0ac730412b6008953a5dc2597d63d 100644 |
--- a/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp |
@@ -49,7 +49,7 @@ namespace { |
template <typename ElementType, typename PropertyType> |
void getScriptableObjectProperty(PropertyType property, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
- HTMLPlugInElement* impl = ElementType::toNative(info.Holder()); |
+ HTMLPlugInElement* impl = ElementType::toImpl(info.Holder()); |
RefPtr<SharedPersistent<v8::Object> > wrapper = impl->pluginWrapper(); |
if (!wrapper) |
return; |
@@ -83,7 +83,7 @@ void callNpObjectSetter(v8::Local<v8::Object> self, uint32_t index, v8::Local<v8 |
template <typename ElementType, typename PropertyType> |
void setScriptableObjectProperty(PropertyType property, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
- HTMLPlugInElement* impl = ElementType::toNative(info.Holder()); |
+ HTMLPlugInElement* impl = ElementType::toImpl(info.Holder()); |
RefPtr<SharedPersistent<v8::Object> > wrapper = impl->pluginWrapper(); |
if (!wrapper) |
return; |
@@ -168,7 +168,7 @@ namespace { |
template <typename ElementType> |
void invokeOnScriptableObject(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- HTMLPlugInElement* impl = ElementType::toNative(info.Holder()); |
+ HTMLPlugInElement* impl = ElementType::toImpl(info.Holder()); |
RefPtr<SharedPersistent<v8::Object> > wrapper = impl->pluginWrapper(); |
if (!wrapper) |
return; |
@@ -190,19 +190,19 @@ void invokeOnScriptableObject(const v8::FunctionCallbackInfo<v8::Value>& info) |
void V8HTMLAppletElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
invokeOnScriptableObject<V8HTMLAppletElement>(info); |
- UseCounter::count(V8HTMLAppletElement::toNative(info.Holder())->document(), UseCounter::HTMLAppletElementLegacyCall); |
+ UseCounter::count(V8HTMLAppletElement::toImpl(info.Holder())->document(), UseCounter::HTMLAppletElementLegacyCall); |
} |
void V8HTMLEmbedElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
invokeOnScriptableObject<V8HTMLEmbedElement>(info); |
- UseCounter::count(V8HTMLEmbedElement::toNative(info.Holder())->document(), UseCounter::HTMLEmbedElementLegacyCall); |
+ UseCounter::count(V8HTMLEmbedElement::toImpl(info.Holder())->document(), UseCounter::HTMLEmbedElementLegacyCall); |
} |
void V8HTMLObjectElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
invokeOnScriptableObject<V8HTMLObjectElement>(info); |
- UseCounter::count(V8HTMLObjectElement::toNative(info.Holder())->document(), UseCounter::HTMLObjectElementLegacyCall); |
+ UseCounter::count(V8HTMLObjectElement::toImpl(info.Holder())->document(), UseCounter::HTMLObjectElementLegacyCall); |
} |
} // namespace blink |