Changeset 23553 in webkit


Ignore:
Timestamp:
Jun 15, 2007, 3:07:55 PM (18 years ago)
Author:
andersca
Message:

Reviewed by Kevin.

A better fix for <rdar://problem/5271774>. Only try to access the element if the
view has an associated window. This also works with GC. (Fix suggested by Kevin.)

  • Plugins/WebKitPluginContainerView.mm: (-[WebKitPluginContainerView dealloc]): (-[WebKitPluginContainerView visibleRect]):
Location:
trunk/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r23552 r23553  
     12007-06-15  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Kevin.
     4
     5        A better fix for <rdar://problem/5271774>. Only try to access the element if the
     6        view has an associated window. This also works with GC. (Fix suggested by Kevin.)
     7
     8        * Plugins/WebKitPluginContainerView.mm:
     9        (-[WebKitPluginContainerView dealloc]):
     10        (-[WebKitPluginContainerView visibleRect]):
     11
    1122007-06-15  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/WebKit/Plugins/WebKitPluginContainerView.mm

    r23552 r23553  
    4646    [_element release];
    4747   
    48     // Calling [super dealloc] can end up calling visibleRect so we need to set
    49     // the _element instance to 0 here so we can check for it in our visibleRect.
    50     _element = 0;
    51    
    5248    [super dealloc];
    5349}
     
    5551- (NSRect)visibleRect
    5652{
    57     if (!_element)
     53    if (![self window])
    5854        return [super visibleRect];
    5955   
Note: See TracChangeset for help on using the changeset viewer.