Changeset 3459
- Timestamp:
- 12/14/06 23:47:22 (2 years ago)
- Files:
-
- trunk/Controllers/MVApplicationController.m (modified) (2 diffs)
- trunk/Preferences/JVAppearancePreferences.m (modified) (1 diff)
- trunk/Views/JVStyleView.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Controllers/MVApplicationController.m
r3418 r3459 31 31 #pragma mark - 32 32 33 @interface WebCache 34 + (void) setDisabled:(BOOL) disabled; 35 @end 36 37 #pragma mark - 38 33 39 NSString *JVChatStyleInstalledNotification = @"JVChatStyleInstalledNotification"; 34 40 NSString *JVChatEmoticonSetInstalledNotification = @"JVChatEmoticonSetInstalledNotification"; … … 397 403 [[MVColorPanel sharedColorPanel] attachColorList:[[[NSColorList alloc] initWithName:@"Chat" fromFile:[[NSBundle mainBundle] pathForResource:@"Chat" ofType:@"clr"]] autorelease]]; 398 404 399 [WebCoreCache setDisabled:[[NSUserDefaults standardUserDefaults] boolForKey:@"JVDisableWebCoreCache"]]; 405 if( NSClassFromString( @"WebCoreCache" ) ) 406 [NSClassFromString( @"WebCoreCache" ) setDisabled:[[NSUserDefaults standardUserDefaults] boolForKey:@"JVDisableWebCoreCache"]]; 407 else if( NSClassFromString( @"WebCache" ) ) 408 [NSClassFromString( @"WebCache" ) setDisabled:[[NSUserDefaults standardUserDefaults] boolForKey:@"JVDisableWebCoreCache"]]; 400 409 401 410 [MVChatPluginManager defaultManager]; trunk/Preferences/JVAppearancePreferences.m
r3418 r3459 7 7 #import "JVDetailCell.h" 8 8 #import "NSBundleAdditions.h" 9 10 @interface WebCoreCache11 + (void) empty;12 @end13 14 #pragma mark -15 9 16 10 @interface WebView (WebViewPrivate) // WebKit 1.3 pending public API trunk/Views/JVStyleView.m
r3431 r3459 11 11 @interface WebCoreCache 12 12 + (void) empty; 13 + (id)statistics; 13 @end 14 15 #pragma mark - 16 17 @interface WebCache 18 + (void) empty; 14 19 @end 15 20 … … 212 217 213 218 if( _contentFrameReady ) { 214 [WebCoreCache empty]; 219 if( NSClassFromString( @"WebCoreCache" ) ) 220 [NSClassFromString( @"WebCoreCache" ) empty]; 221 else if( NSClassFromString( @"WebCache" ) ) 222 [NSClassFromString( @"WebCache" ) empty]; 215 223 216 224 NSString *styleSheetLocation = [[[self style] variantStyleSheetLocationWithName:_styleVariant] absoluteString]; … … 259 267 260 268 if( _contentFrameReady ) { 261 [WebCoreCache empty]; 269 if( NSClassFromString( @"WebCoreCache" ) ) 270 [NSClassFromString( @"WebCoreCache" ) empty]; 271 else if( NSClassFromString( @"WebCache" ) ) 272 [NSClassFromString( @"WebCache" ) empty]; 262 273 263 274 NSString *styleSheetLocation = [[[self emoticons] styleSheetLocation] absoluteString]; … … 291 302 _rememberScrollPosition = YES; 292 303 293 [WebCoreCache empty]; 304 if( NSClassFromString( @"WebCoreCache" ) ) 305 [NSClassFromString( @"WebCoreCache" ) empty]; 306 else if( NSClassFromString( @"WebCache" ) ) 307 [NSClassFromString( @"WebCache" ) empty]; 294 308 295 309 [self _resetDisplay];
