diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/api/public/WebKit.h | 7 | ||||
-rw-r--r-- | webkit/api/src/WebKit.cpp | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/webkit/api/public/WebKit.h b/webkit/api/public/WebKit.h index b3302fe..4b5c1a6 100644 --- a/webkit/api/public/WebKit.h +++ b/webkit/api/public/WebKit.h @@ -82,6 +82,12 @@ namespace WebKit { const WebString& schemeRestriction); WEBKIT_API void registerExtension(v8::Extension*, int extensionGroup); + // Enables special settings which are only applicable if V8 is executed + // in the single thread which must be the main thread. + // FIXME: make a try to dynamically detect when this condition is broken + // and automatically switch off single thread mode. + WEBKIT_API void enableV8SingleThreadMode(); + // Process any pending JavaScript console messages. WEBKIT_API void flushConsoleMessages(); @@ -94,7 +100,6 @@ namespace WebKit { // Enables HTML5 database support. WEBKIT_API void enableDatabases(); WEBKIT_API bool databasesEnabled(); - } // namespace WebKit #endif diff --git a/webkit/api/src/WebKit.cpp b/webkit/api/src/WebKit.cpp index f4c327c..8fa42bb 100644 --- a/webkit/api/src/WebKit.cpp +++ b/webkit/api/src/WebKit.cpp @@ -38,6 +38,7 @@ #include "DOMTimer.h" #include "FrameLoader.h" #include "Page.h" +#include "V8Binding.h" #include "V8Proxy.h" #include "WorkerContextExecutionProxy.h" #include <wtf/Assertions.h> @@ -141,5 +142,9 @@ bool databasesEnabled() return s_databasesEnabled; } +void enableV8SingleThreadMode() +{ + WebCore::enableStringImplCache(); +} } // namespace WebKit |