Changeset 74157 in webkit
- Timestamp:
- Dec 15, 2010 3:55:22 PM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r74152 r74157 1 2010-12-15 Sam Weinig <sam@webkit.org> 2 3 Reviewed by Brady Eidson. 4 5 Loading webkit.org over and over is slower in WebKit2 than WebKit1, looks like page is not cached 6 <rdar://problem/8774683> 7 https://bugs.webkit.org/show_bug.cgi?id=51143 8 9 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 10 (WebKit::WebFrameLoaderClient::canCachePage): Return true as long as we 11 are not a custom representation (eg. a PDF). 12 (WebKit::WebFrameLoaderClient::shouldCacheResponse): Always return true. 13 * WebProcess/WebPage/WebPage.cpp: 14 (WebKit::WebPage::updatePreferences): Enable the page cache. 15 1 16 2010-12-15 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r73666 r74157 1067 1067 bool WebFrameLoaderClient::canCachePage() const 1068 1068 { 1069 notImplemented(); 1070 return false; 1069 // We cannot cache frames that have custom representations because they are 1070 // rendered in the UIProcess. 1071 return !m_frameHasCustomRepresentation; 1071 1072 } 1072 1073 … … 1223 1224 bool WebFrameLoaderClient::shouldCacheResponse(DocumentLoader*, unsigned long identifier, const ResourceResponse&, const unsigned char* data, unsigned long long length) 1224 1225 { 1226 return true; 1227 } 1228 1229 #endif 1230 1231 bool WebFrameLoaderClient::shouldUsePluginDocument(const String& /*mimeType*/) const 1232 { 1225 1233 notImplemented(); 1226 1234 return false; 1227 1235 } 1228 1236 1229 #endif1230 1231 bool WebFrameLoaderClient::shouldUsePluginDocument(const String& /*mimeType*/) const1232 {1233 notImplemented();1234 return false;1235 }1236 1237 1237 PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext() 1238 1238 { -
trunk/WebKit2/WebProcess/WebPage/WebPage.cpp
r74152 r74157 982 982 AbstractDatabase::setIsAvailable(store.getBoolValueForKey(WebPreferencesKey::databasesEnabledKey())); 983 983 #endif 984 984 985 settings->setUsesPageCache(true); 986 985 987 platformPreferencesDidChange(store); 986 988 }
Note: See TracChangeset
for help on using the changeset viewer.