⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 100214 in webkit


Ignore:
Timestamp:
Nov 14, 2011, 4:34:35 PM (15 years ago)
Author:
Simon Fraser
Message:

div with webkit-transform + webkit-box-reflect disappears when switching tabs
https://bugs.webkit.org/show_bug.cgi?id=53355

Reviewed by Dean Jackson.

Tickle Core Animation into updating the layer's content property when
switching back to a tab which has composited reflections. This hack is
needed becuase reflections involve sharing layer contents between layers.

  • platform/graphics/mac/WebLayer.mm:

(-[WebLayer actionForKey:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r100213 r100214  
     12011-11-14  Simon Fraser  <simon.fraser@apple.com>
     2
     3        div with webkit-transform + webkit-box-reflect disappears when switching tabs
     4        https://bugs.webkit.org/show_bug.cgi?id=53355
     5
     6        Reviewed by Dean Jackson.
     7
     8        Tickle Core Animation into updating the layer's content property when
     9        switching back to a tab which has composited reflections. This hack is
     10        needed becuase reflections involve sharing layer contents between layers.
     11
     12        * platform/graphics/mac/WebLayer.mm:
     13        (-[WebLayer actionForKey:]):
     14
    1152011-11-14  Adam Barth  <abarth@webkit.org>
    216
  • trunk/Source/WebCore/platform/graphics/mac/WebLayer.mm

    r98824 r100214  
    3737#import <wtf/UnusedParam.h>
    3838
     39@interface CALayer(WebCoreCALayerPrivate)
     40- (void)reloadValueForKeyPath:(NSString *)keyPath;
     41@end
     42
    3943using namespace WebCore;
    4044
     
    147151}
    148152
    149 // Disable default animations
    150153- (id<CAAction>)actionForKey:(NSString *)key
    151154{
    152     UNUSED_PARAM(key);
     155    // Fix for <rdar://problem/9015675>: Force the layer content to be updated when the tree is reparented.
     156    if ([key isEqualToString:@"onOrderIn"])
     157        [self reloadValueForKeyPath:@"contents"];
     158
    153159    return nil;
    154160}
Note: See TracChangeset for help on using the changeset viewer.