-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=43160 Reviewed by Sam Weinig. WebKit2: * WebProcess/Plugins/NPJSObject.cpp: (WebKit::NPJSObject::invoke): Just call invoke directly. (WebKit::NPJSObject::invokeDefault): Call invoke. (WebKit::NPJSObject::construct): Implement this. (WebKit::NPJSObject::invoke): Add new invoke overload that takes the function as a JSValue. (WebKit::NPJSObject::npClass): Add NP_Construct. (WebKit::NPJSObject::NP_InvokeDefault): Call NPJSObject::invokeDefault. (WebKit::NPJSObject::NP_Construct): Call NPJSObject::construct. * WebProcess/Plugins/NPJSObject.h: * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: (WebKit::NPN_GetValue): Handle the Core Animation drawing model and the Carbon event model. (WebKit::NPN_InvokeDefault): Call the NPClass::invokeDefault function. (WebKit::NPN_Construct): Call the NPClass::construct function. LayoutTests: * platform/mac-wk2/Skipped: Remove plugins/npruntime/invoke-default.html git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
e40da106