Changeset 40306 in webkit


Ignore:
Timestamp:
Jan 27, 2009 8:08:20 PM (15 years ago)
Author:
andersca@apple.com
Message:

2009-01-27 Anders Carlsson <andersca@apple.com>

Reviewed by Oliver Hunt.

Fix two bugs with Core Animation based plug-ins.


  1. The plug-in view was marked as opaque even though it's not. (This would leave garbage in the plug-in view).
  2. The plug-in layer needs to have autoresizing turned on.


  • Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView setLayer:]):
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r40289 r40306  
     12009-01-27  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Fix two bugs with Core Animation based plug-ins.
     6       
     7        1. The plug-in view was marked as opaque even though it's not.
     8           (This would leave garbage in the plug-in view).
     9        2. The plug-in layer needs to have autoresizing turned on.
     10       
     11        * Plugins/WebNetscapePluginView.mm:
     12        (-[WebNetscapePluginView setLayer:]):
     13
    1142009-01-27  Brady Eidson  <beidson@apple.com>
    215
  • trunk/WebKit/mac/Plugins/WebNetscapePluginView.mm

    r39257 r40306  
    10771077{
    10781078    [super setLayer:newLayer];
    1079    
    1080     if (_pluginLayer)
     1079
     1080    if (_pluginLayer) {
     1081        _pluginLayer.get().autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable;
    10811082        [newLayer addSublayer:_pluginLayer.get()];
     1083    }
    10821084}
    10831085#endif
     
    19351937    [self setNeedsDisplayInRect:NSMakeRect(invalidRect->left, invalidRect->top,
    19361938        (float)invalidRect->right - invalidRect->left, (float)invalidRect->bottom - invalidRect->top)];
    1937 }
    1938 
    1939 -(BOOL)isOpaque
    1940 {
    1941     return YES;
    19421939}
    19431940
Note: See TracChangeset for help on using the changeset viewer.