Adium

Changeset 15035

Show
Ignore:
Timestamp:
01/22/2006 02:33:54 AM (3 years ago)
Author:
evands
Message:

Major optimization: Don't invalidate shadows for a transparent message view in the middle of a live resize. Refs #131

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plugins/WebKit Message View/ESWebView.m

    r15034 r15035  
    4444        [super drawRect:rect]; 
    4545         
    46         //Only reset the shadow if we're transparent 
    47         if (transparentBackground) { 
     46        //Only reset the shadow if we're transparent and not currently resizing 
     47        if (transparentBackground && ![self inLiveResize]) { 
    4848                //This happens after the next run loop to ensure that we invalidate the shadow after all of our subviews have drawn 
    4949                [[self window] performSelector:@selector(invalidateShadow) 
     
    5252                                                           inModes:[NSArray arrayWithObjects:NSDefaultRunLoopMode, NSEventTrackingRunLoopMode, nil]]; 
    5353        } 
     54} 
     55 
     56- (void)viewDidEndLiveResize 
     57{ 
     58        [self setNeedsDisplay:YES]; 
     59         
     60        [super viewDidEndLiveResize]; 
    5461} 
    5562