Changeset 152483 in webkit
- Timestamp:
- Jul 8, 2013 10:39:16 PM (11 years ago)
- Location:
- trunk/Source/WebKit/gtk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/gtk/ChangeLog
r152446 r152483 1 2013-07-08 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] webkit_set_cache_model is not turning the cache off 4 https://bugs.webkit.org/show_bug.cgi?id=118345 5 6 Reviewed by Gustavo Noronha Silva. 7 8 Our documentation says that WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER 9 disables the cache completely, but we are only setting the cache 10 capacities to 0. Cache capacities are not checked when resources 11 are added to the cache, but when it's pruned. To disable the cache 12 we need to call MemoryCache::setDisabled explicitly. 13 14 * webkit/webkitglobals.cpp: 15 (webkit_set_cache_model): Disable the cache when min dead, max 16 dead and total capacities are all set to 0. 17 1 18 2013-07-08 Brian Holt <brian.holt@samsung.com> 2 19 -
trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp
r152275 r152483 157 157 } 158 158 159 bool disableCache = !cacheMinDeadCapacity && !cacheMaxDeadCapacity && !cacheTotalCapacity; 160 memoryCache()->setDisabled(disableCache); 159 161 memoryCache()->setCapacities(cacheMinDeadCapacity, cacheMaxDeadCapacity, cacheTotalCapacity); 160 162 memoryCache()->setDeadDecodedDataDeletionInterval(deadDecodedDataDeletionInterval);
Note: See TracChangeset
for help on using the changeset viewer.