Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « Source/bindings/core/v8/custom/V8HTMLOptionsCollectionCustom.cpp ('k') | Source/bindings/core/v8/custom/V8HistoryCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698