Title: [125782] trunk/Source/WebKit2
- Revision
- 125782
- Author
- [email protected]
- Date
- 2012-08-16 08:31:48 -0700 (Thu, 16 Aug 2012)
Log Message
[Qt][WK2] Change the default cache model to enable the page cache
https://bugs.webkit.org/show_bug.cgi?id=94221
Reviewed by Simon Hausmann.
The default CacheModelDocumentViewer disables the memory back-forward page cache.
As uses of applications using QQuickWebView might vary, I'm setting the default to
CacheModelDocumentBrowser.
We should eventually expose this in the API to allow serious Web browsers setting it
to CacheModelPrimaryWebBrowser or to CacheModelDocumentViewer for application tight
on memory with limited page navigations.
* UIProcess/qt/QtWebContext.cpp:
(WebKit::QtWebContext::defaultContext):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (125781 => 125782)
--- trunk/Source/WebKit2/ChangeLog 2012-08-16 15:30:28 UTC (rev 125781)
+++ trunk/Source/WebKit2/ChangeLog 2012-08-16 15:31:48 UTC (rev 125782)
@@ -1,3 +1,20 @@
+2012-08-16 Jocelyn Turcotte <[email protected]>
+
+ [Qt][WK2] Change the default cache model to enable the page cache
+ https://bugs.webkit.org/show_bug.cgi?id=94221
+
+ Reviewed by Simon Hausmann.
+
+ The default CacheModelDocumentViewer disables the memory back-forward page cache.
+ As uses of applications using QQuickWebView might vary, I'm setting the default to
+ CacheModelDocumentBrowser.
+ We should eventually expose this in the API to allow serious Web browsers setting it
+ to CacheModelPrimaryWebBrowser or to CacheModelDocumentViewer for application tight
+ on memory with limited page navigations.
+
+ * UIProcess/qt/QtWebContext.cpp:
+ (WebKit::QtWebContext::defaultContext):
+
2012-08-15 Jocelyn Turcotte <[email protected]>
[Qt] Make sure that we don't prematurely force the first layout during loading.
Modified: trunk/Source/WebKit2/UIProcess/qt/QtWebContext.cpp (125781 => 125782)
--- trunk/Source/WebKit2/UIProcess/qt/QtWebContext.cpp 2012-08-16 15:30:28 UTC (rev 125781)
+++ trunk/Source/WebKit2/UIProcess/qt/QtWebContext.cpp 2012-08-16 15:31:48 UTC (rev 125782)
@@ -116,6 +116,9 @@
return PassRefPtr<QtWebContext>(s_defaultContext);
RefPtr<WebContext> context = WebContext::create(String());
+ // A good all-around default.
+ context->setCacheModel(CacheModelDocumentBrowser);
+
RefPtr<QtWebContext> defaultContext = QtWebContext::create(context.get());
s_defaultContext = defaultContext.get();
// Make sure that this doesn't get called in WebKitTestRunner (defaultContext isn't used there).
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes