Commit 69fa075b authored by beidson@apple.com's avatar beidson@apple.com

2008-04-15 Brady Eidson <beidson@apple.com>

        Reviewed by John Sullivan

        Do a more complete job adding the "WebArchiveDebugMode" pref

        * WebView/WebPreferences.m: Add both getter *and* setter
        (-[WebPreferences webArchiveDebugModeEnabled]):
        (-[WebPreferences setWebArchiveDebugModeEnabled:]):
        * WebView/WebPreferencesPrivate.h:

        * WebView/WebView.mm:
        (-[WebView _preferencesChangedNotification:]): Call the renamed getter



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 82ce94c1
2008-04-15 Brady Eidson <beidson@apple.com>
Reviewed by John Sullivan
Do a more complete job adding the "WebArchiveDebugMode" pref
* WebView/WebPreferences.m: Add both getter *and* setter
(-[WebPreferences webArchiveDebugModeEnabled]):
(-[WebPreferences setWebArchiveDebugModeEnabled:]):
* WebView/WebPreferencesPrivate.h:
* WebView/WebView.mm:
(-[WebView _preferencesChangedNotification:]): Call the renamed getter
2008-04-14 Brady Eidson <beidson@apple.com>
Reviewed by Anders
......
......@@ -751,14 +751,19 @@ - (BOOL)authorAndUserStylesEnabled
return [self _boolValueForKey:WebKitAuthorAndUserStylesEnabledPreferenceKey];
}
- (BOOL)_webArchiveDebugModeEnabled
- (void)setAuthorAndUserStylesEnabled:(BOOL)flag
{
[self _setBoolValue:flag forKey:WebKitAuthorAndUserStylesEnabledPreferenceKey];
}
- (BOOL)webArchiveDebugModeEnabled
{
return [self _boolValueForKey:WebKitWebArchiveDebugModeEnabledPreferenceKey];
}
- (void)setAuthorAndUserStylesEnabled:(BOOL)flag
- (void)setWebArchiveDebugModeEnabled:(BOOL)flag
{
[self _setBoolValue:flag forKey:WebKitAuthorAndUserStylesEnabledPreferenceKey];
[self _setBoolValue:flag forKey:WebKitWebArchiveDebugModeEnabledPreferenceKey];
}
- (BOOL)respectStandardStyleKeyEquivalents
......
......@@ -68,6 +68,9 @@ extern NSString *WebPreferencesRemovedNotification;
- (BOOL)automaticallyDetectsCacheModel;
- (void)setAutomaticallyDetectsCacheModel:(BOOL)automaticallyDetectsCacheModel;
- (BOOL)webArchiveDebugModeEnabled;
- (void)setWebArchiveDebugModeEnabled:(BOOL)webArchiveDebugModeEnabled;
// zero means do AutoScale
- (float)PDFScaleFactor;
- (void)setPDFScaleFactor:(float)scale;
......@@ -90,8 +93,6 @@ extern NSString *WebPreferencesRemovedNotification;
- (void)_setForceFTPDirectoryListings:(BOOL)force;
- (BOOL)_forceFTPDirectoryListings;
- (BOOL)_webArchiveDebugModeEnabled;
// Other private methods
- (void)_postPreferencesChangesNotification;
+ (WebPreferences *)_getInstanceForIdentifier:(NSString *)identifier;
......
......@@ -983,7 +983,7 @@ static bool debugWidget = true;
settings->setNeedsAdobeFrameReloadingQuirk([self _needsAdobeFrameReloadingQuirk]);
settings->setNeedsKeyboardEventDisambiguationQuirks([self _needsKeyboardEventDisambiguationQuirks]);
settings->setNeedsSiteSpecificQuirks(_private->useSiteSpecificSpoofing);
settings->setWebArchiveDebugModeEnabled([preferences _webArchiveDebugModeEnabled]);
settings->setWebArchiveDebugModeEnabled([preferences webArchiveDebugModeEnabled]);
}
static inline IMP getMethod(id o, SEL s)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment