summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-10-28 13:47:37 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-10-28 13:47:37 -0400
commit8c6c2864439f5757f8e480c9b23f640baacb9f4f (patch)
treed93d967930b2526b462e23b4fb5a1db56d18b84a /WebKit
parent4e71352fc03ff3e392a94407c2298c045b610311 (diff)
parentb999781071d8167a543e0e48ad25d51178d713d1 (diff)
downloadexternal_webkit-8c6c2864439f5757f8e480c9b23f640baacb9f4f.zip
external_webkit-8c6c2864439f5757f8e480c9b23f640baacb9f4f.tar.gz
external_webkit-8c6c2864439f5757f8e480c9b23f640baacb9f4f.tar.bz2
Merge change I998a5863 into eclair-mr2
* changes: Use NPAPI headers from WebCore/bridge/ rather than those from V8Bindings/npapi/.
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index d6aa3f6..0675bcb 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -1244,7 +1244,12 @@ static void AddJavascriptInterface(JNIEnv *env, jobject obj, jint nativeFramePoi
// the ref count when the object is not reachable from JavaScript
// side. Code here must release the reference count increased by
// JavaInstanceToNPObject.
- _NPN_ReleaseObject(obj);
+
+ // Note that while this function is declared in WebCore/bridge/npruntime.h, for V8 builds
+ // we use WebCore/bindings/v8/npruntime.cpp (rather than
+ // WebCore/bridge/npruntime.cpp), so the function is implemented there.
+ // TODO: Combine the two versions of these NPAPI files.
+ NPN_ReleaseObject(obj);
JSC::Bindings::releaseCharactersForJString(interfaceName, name);
}
#endif