diff options
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.cpp b/webkit/port/bindings/v8/v8_custom.cpp index 4a3f392..86c2c01 100644 --- a/webkit/port/bindings/v8/v8_custom.cpp +++ b/webkit/port/bindings/v8/v8_custom.cpp @@ -955,75 +955,6 @@ NAMED_PROPERTY_SETTER(CSSStyleDeclaration) { } -NAMED_PROPERTY_GETTER(HTMLPlugInElement) { - INC_STATS("DOM.HTMLPlugInElement.NamedPropertyGetter"); - HTMLPlugInElement* imp = - V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(info.Holder()); - ScriptInstance script_instance = imp->getInstance(); - if (script_instance) { - v8::Local<v8::Object> instance = - v8::Local<v8::Object>::New(script_instance->instance()); - if (!instance.IsEmpty()) { - return NPObjectGetNamedProperty(instance, name); - } - } - return v8::Handle<v8::Object>(); -} - - -NAMED_PROPERTY_SETTER(HTMLPlugInElement) { - INC_STATS("DOM.HTMLPlugInElement.NamedPropertySetter"); - HTMLPlugInElement* imp = - V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(info.Holder()); - ScriptInstance script_instance = imp->getInstance(); - if (script_instance) { - v8::Local<v8::Object> instance = - v8::Local<v8::Object>::New(script_instance->instance()); - if (!instance.IsEmpty()) { - return NPObjectSetNamedProperty(instance, name, value); - } - } - return v8::Handle<v8::Value>(); // do not block the call -} - - -CALLBACK_FUNC_DECL(HTMLPlugInElement) { - INC_STATS("DOM.HTMLPluginElement()"); - return NPObjectInvokeDefaultHandler(args); -} - - -INDEXED_PROPERTY_GETTER(HTMLPlugInElement) { - INC_STATS("DOM.HTMLPlugInElement.IndexedPropertyGetter"); - HTMLPlugInElement* imp = - V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(info.Holder()); - ScriptInstance script_instance = imp->getInstance(); - if (script_instance) { - v8::Local<v8::Object> instance = - v8::Local<v8::Object>::New(script_instance->instance()); - if (!instance.IsEmpty()) { - return NPObjectGetIndexedProperty(instance, index); - } - } - return v8::Handle<v8::Object>(); -} - - -INDEXED_PROPERTY_SETTER(HTMLPlugInElement) { - INC_STATS("DOM.HTMLPlugInElement.IndexedPropertySetter"); - HTMLPlugInElement* imp = - V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(info.Holder()); - ScriptInstance script_instance = imp->getInstance(); - if (script_instance) { - v8::Local<v8::Object> instance = - v8::Local<v8::Object>::New(script_instance->instance()); - if (!instance.IsEmpty()) { - return NPObjectSetIndexedProperty(instance, index, value); - } - } - return v8::Handle<v8::Value>(); // do not block the call -} - NAMED_PROPERTY_GETTER(StyleSheetList) { INC_STATS("DOM.StyleSheetList.NamedPropertyGetter"); // Look for local properties first. |