Title: [152638] releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk
- Revision
- 152638
- Author
- [email protected]
- Date
- 2013-07-15 09:28:26 -0700 (Mon, 15 Jul 2013)
Log Message
Merge r152483 - [GTK] webkit_set_cache_model is not turning the cache off
https://bugs.webkit.org/show_bug.cgi?id=118345
Reviewed by Gustavo Noronha Silva.
Our documentation says that WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER
disables the cache completely, but we are only setting the cache
capacities to 0. Cache capacities are not checked when resources
are added to the cache, but when it's pruned. To disable the cache
we need to call MemoryCache::setDisabled explicitly.
* webkit/webkitglobals.cpp:
(webkit_set_cache_model): Disable the cache when min dead, max
dead and total capacities are all set to 0.
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk/ChangeLog (152637 => 152638)
--- releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk/ChangeLog 2013-07-15 16:24:51 UTC (rev 152637)
+++ releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk/ChangeLog 2013-07-15 16:28:26 UTC (rev 152638)
@@ -1,3 +1,20 @@
+2013-07-08 Carlos Garcia Campos <[email protected]>
+
+ [GTK] webkit_set_cache_model is not turning the cache off
+ https://bugs.webkit.org/show_bug.cgi?id=118345
+
+ Reviewed by Gustavo Noronha Silva.
+
+ Our documentation says that WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER
+ disables the cache completely, but we are only setting the cache
+ capacities to 0. Cache capacities are not checked when resources
+ are added to the cache, but when it's pruned. To disable the cache
+ we need to call MemoryCache::setDisabled explicitly.
+
+ * webkit/webkitglobals.cpp:
+ (webkit_set_cache_model): Disable the cache when min dead, max
+ dead and total capacities are all set to 0.
+
2013-06-11 Carlos Garcia Campos <[email protected]>
Unreviewed. Update NEWS and Versions.m4 for 2.0.3 release.
Modified: releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk/webkit/webkitglobals.cpp (152637 => 152638)
--- releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk/webkit/webkitglobals.cpp 2013-07-15 16:24:51 UTC (rev 152637)
+++ releases/WebKitGTK/webkit-2.0/Source/WebKit/gtk/webkit/webkitglobals.cpp 2013-07-15 16:28:26 UTC (rev 152638)
@@ -160,6 +160,8 @@
g_return_if_reached();
}
+ bool disableCache = !cacheMinDeadCapacity && !cacheMaxDeadCapacity && !cacheTotalCapacity;
+ memoryCache()->setDisabled(disableCache);
memoryCache()->setCapacities(cacheMinDeadCapacity, cacheMaxDeadCapacity, cacheTotalCapacity);
memoryCache()->setDeadDecodedDataDeletionInterval(deadDecodedDataDeletionInterval);
pageCache()->setCapacity(pageCacheCapacity);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes