+2005-03-04 Richard Williamson <rjw@apple.com>
+
+ Fixed <rdar://problem/3968753> REGRESSION: Poor performance with differing multiple animated GIFs (was fast in Panther)
+
+ Disable coalesced updates (in CG). This restores the
+ panther behavior.
+
+ Reviewed by David Harrison.
+
+ * WebView.subproj/WebView.m:
+ (-[WebView _commonInitializationWithFrameName:groupName:]):
+
2005-03-04 Adele Amchan <adele@apple.com>
Reviewed by Darin.
#import <Foundation/NSURLRequestPrivate.h>
#import <Foundation/NSUserDefaults_NSURLExtras.h>
+#include <CoreGraphics/CGSConnection.h>
+
#define FOR_EACH_RESPONDER_SELECTOR(macro) \
macro(alignCenter) \
macro(alignJustified) \
- (BOOL)_shouldAutoscrollForDraggingInfo:(id)dragInfo;
@end
+@interface NSApplication (AppKitSecrectsIKnow)
+- (CGSConnectionID)contextID;
+@end
+
@interface WebView (WebFileInternal)
- (void)_preflightSpellChecker;
- (BOOL)_continuousCheckingAllowed;
[types release];
}
+static bool CGContextInitialized = false;
+
- (void)_commonInitializationWithFrameName:(NSString *)frameName groupName:(NSString *)groupName
{
+ if (!CGContextInitialized) {
+ CFStringRef key = CFSTR(kCGSDisableDeferredUpdates);
+ CGSSetConnectionProperty([NSApp contextID], [NSApp contextID], (CGSValueObj)key, (CGSValueObj)kCFBooleanTrue);
+ CGContextInitialized = true;
+ }
+
_private->drawsBackground = YES;
_private->smartInsertDeleteEnabled = YES;