diff options
Diffstat (limited to 'Source/WebKit/chromium/src/WebRuntimeFeatures.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp index 0b5d397..e3ece6e 100644 --- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp +++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp @@ -202,14 +202,14 @@ bool WebRuntimeFeatures::isWebAudioEnabled() void WebRuntimeFeatures::enableWebGL(bool enable) { -#if ENABLE(3D_CANVAS) +#if ENABLE(WEBGL) RuntimeEnabledFeatures::setWebGLEnabled(enable); #endif } bool WebRuntimeFeatures::isWebGLEnabled() { -#if ENABLE(3D_CANVAS) +#if ENABLE(WEBGL) return RuntimeEnabledFeatures::webGLRenderingContextEnabled(); #else return false; @@ -304,4 +304,20 @@ bool WebRuntimeFeatures::isFileSystemEnabled() #endif } +void WebRuntimeFeatures::enableJavaScriptI18NAPI(bool enable) +{ +#if ENABLE(JAVASCRIPT_I18N_API) + RuntimeEnabledFeatures::setJavaScriptI18NAPIEnabled(enable); +#endif +} + +bool WebRuntimeFeatures::isJavaScriptI18NAPIEnabled() +{ +#if ENABLE(JAVASCRIPT_I18N_API) + return RuntimeEnabledFeatures::javaScriptI18NAPIEnabled(); +#else + return false; +#endif +} + } // namespace WebKit |