summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/js/JSPluginElementFunctions.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/bindings/js/JSPluginElementFunctions.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/bindings/js/JSPluginElementFunctions.h')
-rw-r--r--Source/WebCore/bindings/js/JSPluginElementFunctions.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/WebCore/bindings/js/JSPluginElementFunctions.h b/Source/WebCore/bindings/js/JSPluginElementFunctions.h
index 8a2e99d59..f4f5f4ca9 100644
--- a/Source/WebCore/bindings/js/JSPluginElementFunctions.h
+++ b/Source/WebCore/bindings/js/JSPluginElementFunctions.h
@@ -17,8 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSPluginElementFunctions_h
-#define JSPluginElementFunctions_h
+#pragma once
#include "JSDOMBinding.h"
@@ -36,27 +35,22 @@ namespace WebCore {
// JavaScript access to plug-in-exported properties for JSHTMLAppletElement, JSHTMLEmbedElement and JSHTMLObjectElement.
JSC::Bindings::Instance* pluginInstance(HTMLElement&);
- JSC::JSObject* pluginScriptObject(JSC::ExecState*, JSHTMLElement*);
+ WEBCORE_EXPORT JSC::JSObject* pluginScriptObject(JSC::ExecState*, JSHTMLElement*);
- JSC::EncodedJSValue pluginElementPropertyGetter(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue, JSC::PropertyName);
+ JSC::EncodedJSValue pluginElementPropertyGetter(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
bool pluginElementCustomGetOwnPropertySlot(JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&, JSHTMLElement*);
- bool pluginElementCustomPut(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSHTMLElement*, JSC::PutPropertySlot&);
+ bool pluginElementCustomPut(JSC::ExecState*, JSC::PropertyName, JSC::JSValue, JSHTMLElement*, JSC::PutPropertySlot&, bool& putResult);
JSC::CallType pluginElementGetCallData(JSHTMLElement*, JSC::CallData&);
template <class Type, class Base> bool pluginElementCustomGetOwnPropertySlot(JSC::ExecState* exec, JSC::PropertyName propertyName, JSC::PropertySlot& slot, Type* element)
{
if (!element->globalObject()->world().isNormal()) {
- if (JSC::getStaticValueSlot<Type, Base>(exec, *Type::info()->staticPropHashTable, element, propertyName, slot))
- return true;
-
- JSC::JSValue proto = element->prototype();
+ JSC::JSValue proto = element->getPrototypeDirect();
if (proto.isObject() && JSC::jsCast<JSC::JSObject*>(asObject(proto))->hasProperty(exec, propertyName))
return false;
}
-
+
return pluginElementCustomGetOwnPropertySlot(exec, propertyName, slot, element);
}
} // namespace WebCore
-
-#endif // JSPluginElementFunctions_h