summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-17 19:00:37 +0100
committerBen Murdoch <benm@google.com>2009-08-17 19:00:37 +0100
commitab4f4d6e9dcd2465524619737cd0bbd7386fa14e (patch)
tree36864c081e46c3b5311da4fbbb022b8569cfd43f /WebKit
parent69f588f94a1f7829b6b8a1c45319ffc4f17ea5e6 (diff)
downloadexternal_webkit-ab4f4d6e9dcd2465524619737cd0bbd7386fa14e.zip
external_webkit-ab4f4d6e9dcd2465524619737cd0bbd7386fa14e.tar.gz
external_webkit-ab4f4d6e9dcd2465524619737cd0bbd7386fa14e.tar.bz2
Continue with linker error fixes.
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index 6048c98..d042c92 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -26,7 +26,7 @@
#define LOG_TAG "webcoreglue"
#include <config.h>
-#include <runtime/InitializeThreading.h>
+
#include <wtf/Platform.h>
#include "android_graphics.h"
@@ -63,8 +63,10 @@
#if USE(JSC)
#include "GCController.h"
#include "JSDOMWindow.h"
+#include <runtime/InitializeThreading.h>
#include <runtime/JSLock.h>
#elif USE(V8)
+#include "InitializeThreading.h"
#include "jni_npobject.h"
#include "jni_instance.h"
#endif // USE(JSC)
@@ -716,8 +718,11 @@ static void CallPolicyFunction(JNIEnv* env, jobject obj, jint func, jint decisio
static void CreateFrame(JNIEnv* env, jobject obj, jobject javaview, jobject jAssetManager, jobject historyList)
{
- // TODO(andreip): Where did the V8InitializeThreading.h disappear?
+#if USE(JSC)
JSC::initializeThreading();
+#elif USE(V8)
+ V8::initializeThreading();
+#endif
#ifdef ANDROID_INSTRUMENT
TimeCounterAuto counter(TimeCounter::NativeCallbackTimeCounter);
@@ -1087,7 +1092,7 @@ 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);
+ _NPN_ReleaseObject(obj);
JSC::Bindings::releaseCharactersForJString(interfaceName, name);
}
#endif