diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-11 13:45:28 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-11 13:45:28 +0200 |
commit | d6a599dbc9d824a462b2b206316e102bf8136446 (patch) | |
tree | ecb257a5e55b2239d74b90fdad62fccd661cf286 /Source/WebKit/win/WebView.cpp | |
parent | 3ccc3a85f09a83557b391aae380d3bf5f81a2911 (diff) | |
download | qtwebkit-d6a599dbc9d824a462b2b206316e102bf8136446.tar.gz |
Imported WebKit commit 8ff1f22783a32de82fee915abd55bd1b298f2644 (http://svn.webkit.org/repository/webkit/trunk@122325)
New snapshot that should work with the latest Qt build system changes
Diffstat (limited to 'Source/WebKit/win/WebView.cpp')
-rw-r--r-- | Source/WebKit/win/WebView.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/WebKit/win/WebView.cpp b/Source/WebKit/win/WebView.cpp index 880bc1bd0..c709ba9f1 100644 --- a/Source/WebKit/win/WebView.cpp +++ b/Source/WebKit/win/WebView.cpp @@ -2641,7 +2641,9 @@ HRESULT STDMETHODCALLTYPE WebView::initWithFrame( static bool didOneTimeInitialization; if (!didOneTimeInitialization) { +#if !LOG_DISABLED initializeLoggingChannelsIfNecessary(); +#endif // !LOG_DISABLED #if ENABLE(SQL_DATABASE) WebKitInitializeWebDatabasesIfNecessary(); #endif @@ -3194,8 +3196,8 @@ HRESULT STDMETHODCALLTYPE WebView::stringByEvaluatingJavaScriptFromString( if (!scriptExecutionResult) return E_FAIL; else if (scriptExecutionResult.isString()) { - JSLock lock(JSC::SilenceAssertionsOnly); JSC::ExecState* exec = coreFrame->script()->globalObject(mainThreadNormalWorld())->globalExec(); + JSC::JSLockHolder lock(exec); *result = BString(ustringToString(scriptExecutionResult.getString(exec))); } @@ -4668,6 +4670,11 @@ HRESULT WebView::notifyPreferencesChanged(IWebNotification* notification) return hr; settings->setPluginsEnabled(!!enabled); + hr = preferences->isCSSRegionsEnabled(&enabled); + if (FAILED(hr)) + return hr; + settings->setCSSRegionsEnabled(!!enabled); + hr = preferences->privateBrowsingEnabled(&enabled); if (FAILED(hr)) return hr; @@ -4900,13 +4907,6 @@ HRESULT WebView::notifyPreferencesChanged(IWebNotification* notification) return hr; settings->setLoadsSiteIconsIgnoringImageLoadingSetting(!!enabled); -#if ENABLE(WEB_SOCKETS) - hr = prefsPrivate->hixie76WebSocketProtocolEnabled(&enabled); - if (FAILED(hr)) - return hr; - settings->setUseHixie76WebSocketProtocol(enabled); -#endif - hr = prefsPrivate->showsToolTipOverTruncatedText(&enabled); if (FAILED(hr)) return hr; @@ -5851,8 +5851,8 @@ HRESULT STDMETHODCALLTYPE WebView::reportException( if (!context || !exception) return E_FAIL; - JSLock lock(JSC::SilenceAssertionsOnly); JSC::ExecState* execState = toJS(context); + JSC::JSLockHolder lock(execState); // Make sure the context has a DOMWindow global object, otherwise this context didn't originate from a WebView. if (!toJSDOMWindow(execState->lexicalGlobalObject())) @@ -5878,8 +5878,9 @@ HRESULT STDMETHODCALLTYPE WebView::elementFromJS( if (!nodeObject) return E_FAIL; - JSLock lock(JSC::SilenceAssertionsOnly); - Element* elt = toElement(toJS(toJS(context), nodeObject)); + JSC::ExecState* exec = toJS(context); + JSC::JSLockHolder lock(exec); + Element* elt = toElement(toJS(exec, nodeObject)); if (!elt) return E_FAIL; |