+2007-11-29 Anders Carlsson <andersca@apple.com>
+
+ Reviewed by John.
+
+ Rename WebKitShrinksStandaloneImagesToFitKey to WebKitShrinksStandaloneImagesToFit.
+
+ This is safe to do because the preference is off by default and Safari 3, which is the only client that turns it on,
+ is using the setter and not messing around with NSUserDefaults.
+
+ * WebView/WebPreferenceKeysPrivate.h:
+ * WebView/WebPreferences.m:
+ (+[WebPreferences initialize]):
+ (-[WebPreferences shrinksStandaloneImagesToFit]):
+ (-[WebPreferences setShrinksStandaloneImagesToFit:]):
+
2007-11-29 Brady Eidson <beidson@apple.com>
Reviewed by Anders
#define WebKitUserStyleSheetLocationPreferenceKey @"WebKitUserStyleSheetLocationPreferenceKey"
#define WebKitShouldPrintBackgroundsPreferenceKey @"WebKitShouldPrintBackgroundsPreferenceKey"
#define WebKitTextAreasAreResizablePreferenceKey @"WebKitTextAreasAreResizable"
-#define WebKitShrinksStandaloneImagesToFit @"WebKitShrinksStandaloneImagesToFitKey"
+#define WebKitShrinksStandaloneImagesToFitPreferenceKey @"WebKitShrinksStandaloneImagesToFit"
#define WebKitJavaEnabledPreferenceKey @"WebKitJavaEnabled"
#define WebKitJavaScriptEnabledPreferenceKey @"WebKitJavaScriptEnabled"
#define WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey @"WebKitJavaScriptCanOpenWindowsAutomatically"
@"", WebKitUserStyleSheetLocationPreferenceKey,
[NSNumber numberWithBool:NO], WebKitShouldPrintBackgroundsPreferenceKey,
[NSNumber numberWithBool:NO], WebKitTextAreasAreResizablePreferenceKey,
- [NSNumber numberWithBool:NO], WebKitShrinksStandaloneImagesToFit,
+ [NSNumber numberWithBool:NO], WebKitShrinksStandaloneImagesToFitPreferenceKey,
[NSNumber numberWithBool:YES], WebKitJavaEnabledPreferenceKey,
[NSNumber numberWithBool:YES], WebKitJavaScriptEnabledPreferenceKey,
[NSNumber numberWithBool:YES], WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey,
- (BOOL)shrinksStandaloneImagesToFit
{
- return [self _boolValueForKey:WebKitShrinksStandaloneImagesToFit];
+ return [self _boolValueForKey:WebKitShrinksStandaloneImagesToFitPreferenceKey];
}
- (void)setShrinksStandaloneImagesToFit:(BOOL)flag
{
- [self _setBoolValue:flag forKey:WebKitShrinksStandaloneImagesToFit];
+ [self _setBoolValue:flag forKey:WebKitShrinksStandaloneImagesToFitPreferenceKey];
}
- (BOOL)automaticallyDetectsCacheModel