summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-03-18 13:10:52 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-03-18 12:21:44 +0000
commit8974c50559e04665ce7771aa097ad83fb59a89d8 (patch)
tree789fa9e6437908f54205aaf95af5ce1002003093
parentd5b89632b5c6707660003ef762037e2e6074422e (diff)
Set minimum DOMTimer interval to 4ms
This changes the QtWebKitWidgets minimum DOMTimer precision to match that of QtWebKitQML (WebKit2) and other WebKit1 APIs. See also https://bugs.webkit.org/show_bug.cgi?id=61214 Change-Id: Id8ce7d217ed27396c8b14584f8c0c22a5df888cd Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
-rw-r--r--Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp b/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp
index 8ba625a82..591fa052d 100644
--- a/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp
+++ b/Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp
@@ -44,6 +44,7 @@
#include "ScriptController.h"
#include "ScrollbarThemeQStyle.h"
#include "SecurityPolicy.h"
+#include "Settings.h"
#include "qwebelement_p.h"
#include <JavaScriptCore/runtime/InitializeThreading.h>
@@ -104,6 +105,7 @@ Q_DECL_EXPORT void initializeWebCoreQt()
if (!WebCore::memoryCache()->disabled())
WebCore::memoryCache()->setDeadDecodedDataDeletionInterval(60);
WebCore::RuntimeEnabledFeatures::setCSSCompositingEnabled(true);
+ WebCore::Settings::setDefaultMinDOMTimerInterval(0.004);
initialized = true;
}