Bring back [WebPreferences setDiskImageCacheEnabled:] for backwards compatibility
authorpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Sep 2014 01:02:43 +0000 (01:02 +0000)
committerpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Sep 2014 01:02:43 +0000 (01:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=136560

Reviewed by Joseph Pecoraro.

I removed the disk image caching code in r173265. However, we still have clients that call
setDiskImageCacheEnabled. Add in a stub method until we can wean the clients off this call.

* WebView/WebPreferences.mm:
(-[WebPreferences setDiskImageCacheEnabled:]):
* WebView/WebPreferencesPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173299 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebPreferences.mm
Source/WebKit/mac/WebView/WebPreferencesPrivate.h

index 52ae6a2..23bb8f9 100644 (file)
@@ -1,3 +1,17 @@
+2014-09-04  Pratik Solanki  <psolanki@apple.com>
+
+        Bring back [WebPreferences setDiskImageCacheEnabled:] for backwards compatibility
+        https://bugs.webkit.org/show_bug.cgi?id=136560
+
+        Reviewed by Joseph Pecoraro.
+
+        I removed the disk image caching code in r173265. However, we still have clients that call
+        setDiskImageCacheEnabled. Add in a stub method until we can wean the clients off this call.
+
+        * WebView/WebPreferences.mm:
+        (-[WebPreferences setDiskImageCacheEnabled:]):
+        * WebView/WebPreferencesPrivate.h:
+
 2014-09-03  Andy Estes  <aestes@apple.com>
 
         [Cocoa] Some WebKitLegacy headers migrated from WebCore incorrectly contain WEBCORE_EXPORT
index 26dc53c..f0365aa 100644 (file)
@@ -1904,6 +1904,11 @@ static NSString *classIBCreatorID = nil;
     [self _setBoolValue:enabled forKey:WebKitAccelerated2dCanvasEnabledPreferenceKey];
 }
 
+- (void)setDiskImageCacheEnabled:(BOOL)enabled
+{
+    // Staging. Can be removed once there are no more callers.
+}
+
 - (BOOL)isFrameFlatteningEnabled
 {
     return [self _boolValueForKey:WebKitFrameFlatteningEnabledPreferenceKey];
index e4da1ff..1cbd9d0 100644 (file)
@@ -271,6 +271,9 @@ extern NSString *WebPreferencesCacheModelChangedInternalNotification;
 - (void)_setMinimumZoomFontSize:(float)size;
 - (float)_minimumZoomFontSize;
 
+// Deprecated. Has no effect.
+- (void)setDiskImageCacheEnabled:(BOOL)enabled;
+
 - (void)setMediaPlaybackAllowsAirPlay:(BOOL)flag;
 - (BOOL)mediaPlaybackAllowsAirPlay;
 #endif