summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-10-26 18:08:41 +0000
committerSteve Block <steveblock@google.com>2009-10-28 17:25:17 +0000
commitb999781071d8167a543e0e48ad25d51178d713d1 (patch)
treef1e84ab516bfb5c6e4b0b5e25fe7853efce9771d /WebCore/bindings
parent7b035dc1012763a04adddc6de25256647fea50bd (diff)
downloadexternal_webkit-b999781071d8167a543e0e48ad25d51178d713d1.zip
external_webkit-b999781071d8167a543e0e48ad25d51178d713d1.tar.gz
external_webkit-b999781071d8167a543e0e48ad25d51178d713d1.tar.bz2
Use NPAPI headers from WebCore/bridge/ rather than those from V8Bindings/npapi/.
The files in question are npapi.h and npruntime.h. The Android versions at V8Bindings/npapi/ are identical to the WebKit versions, other than a couple of trivial changes, which are accounted for in this patch. Change-Id: I998a5863181283aa6153c84a745b1923d9b5721b
Diffstat (limited to 'WebCore/bindings')
-rw-r--r--WebCore/bindings/v8/npruntime.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/npruntime.cpp b/WebCore/bindings/v8/npruntime.cpp
index 3ae2e70..35015b0 100644
--- a/WebCore/bindings/v8/npruntime.cpp
+++ b/WebCore/bindings/v8/npruntime.cpp
@@ -312,6 +312,15 @@ void _NPN_DeallocateObject(NPObject* npObject)
}
}
+#if PLATFORM(ANDROID)
+// Android uses NPN_ReleaseObject (the 'public' version of _NPN_ReleaseObject)
+// in WebCoreFrameBridge.cpp. See http://trac.webkit.org/changeset/47021.
+// TODO: Upstream this to webkit.org.
+void NPN_ReleaseObject(NPObject *obj)
+{
+ _NPN_ReleaseObject(obj);
+}
+#endif
void _NPN_ReleaseObject(NPObject* npObject)
{
ASSERT(npObject);