diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.cpp b/Source/WebKit/android/jni/WebViewCore.cpp index 80fdd8d..a2db69d 100644 --- a/Source/WebKit/android/jni/WebViewCore.cpp +++ b/Source/WebKit/android/jni/WebViewCore.cpp @@ -160,6 +160,10 @@ FILE* gRenderTreeFile = 0; #include "RenderLayerCompositor.h" #endif +#if USE(V8) +#include <v8.h> +#endif + /* We pass this flag when recording the actual content, so that we don't spend time actually regionizing complex path clips, when all we really want to do is record them. @@ -428,6 +432,12 @@ WebViewCore::WebViewCore(JNIEnv* env, jobject javaWebViewCore, WebCore::Frame* m #if USE(CHROME_NETWORK_STACK) AndroidNetworkLibraryImpl::InitWithApplicationContext(env, 0); #endif + +#if USE(V8) + // FIXME: This is a work-around for a V8 bug regarding initializing the + // default isolate and should be removed when it is fixed. + v8::V8::Initialize(); +#endif } WebViewCore::~WebViewCore() |