Changeset 87003 in webkit
- Timestamp:
- May 20, 2011 5:29:51 PM (13 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r86995 r87003 1 2011-05-20 Jeremy Noble <jer.noble@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 Stack overflow in WebFullScreenController when built on Leopard and run on SnowLeopard. 6 https://bugs.webkit.org/show_bug.cgi?id=61224 7 8 Remove the CATransaction(SnowLeopardConvenience) functions, and replace them with the Leopard 9 versions of same. 10 11 * WebView/WebFullScreenController.mm: 12 (-[WebFullScreenController windowDidEnterFullscreen:]): 13 (-[WebFullScreenController enterFullscreen:]): 14 (-[WebFullScreenController exitFullscreen]): 15 (-[WebFullscreenWindow setRendererLayer:]): 16 1 17 2011-05-20 Andy Estes <aestes@apple.com> 2 18 -
trunk/Source/WebKit/mac/WebView/WebFullScreenController.mm
r86995 r87003 62 62 using namespace WebCore; 63 63 64 #if defined(BUILDING_ON_LEOPARD)65 @interface CATransaction(SnowLeopardConvenienceFunctions)66 + (void)setDisableActions:(BOOL)flag;67 + (void)setAnimationDuration:(CFTimeInterval)dur;68 @end69 70 @implementation CATransaction(SnowLeopardConvenienceFunctions)71 + (void)setDisableActions:(BOOL)flag72 {73 [self setValue:[NSNumber numberWithBool:flag] forKey:kCATransactionDisableActions];74 }75 76 + (void)setAnimationDuration:(CFTimeInterval)dur77 {78 [self setValue:[NSNumber numberWithDouble:dur] forKey:kCATransactionAnimationDuration];79 }80 @end81 82 #endif83 84 64 @interface WebFullscreenWindow : NSWindow 85 65 #ifndef BUILDING_ON_LEOPARD … … 308 288 309 289 [CATransaction begin]; 310 [CATransaction set DisableActions:YES];290 [CATransaction setValue:[NSNumber numberWithBool:YES] forKey:kCATransactionDisableActions]; 311 291 [[[window animationView] layer] setOpacity:0]; 312 292 [CATransaction commit]; … … 470 450 // the animation finishes. 471 451 [CATransaction begin]; 472 [CATransaction set AnimationDuration:duration];452 [CATransaction setValue:[NSNumber numberWithDouble:duration] forKey:kCATransactionAnimationDuration]; 473 453 [backgroundLayer setOpacity:1]; 474 454 [CATransaction commit]; … … 487 467 // Disable implicit animations and set the layer's transformation matrix to its final state. 488 468 [CATransaction begin]; 489 [CATransaction set DisableActions:YES];469 [CATransaction setValue:[NSNumber numberWithBool:YES] forKey:kCATransactionDisableActions]; 490 470 [rendererLayer setTransform:CATransform3DIdentity]; 491 471 [rendererLayer addAnimation:zoomAnimation forKey:@"zoom"]; … … 555 535 // wise, the content will appear to fade into view. 556 536 [CATransaction begin]; 557 [CATransaction set DisableActions:YES];537 [CATransaction setValue:[NSNumber numberWithBool:YES] forKey:kCATransactionDisableActions]; 558 538 WebFullscreenWindow* window = [self _fullscreenWindow]; 559 539 [[[window animationView] layer] setOpacity:1]; … … 618 598 CALayer* backgroundLayer = [[self _fullscreenWindow] backgroundLayer]; 619 599 [CATransaction begin]; 620 [CATransaction set AnimationDuration:duration];600 [CATransaction setValue:[NSNumber numberWithDouble:duration] forKey:kCATransactionAnimationDuration]; 621 601 [backgroundLayer setOpacity:0]; 622 602 [CATransaction commit]; … … 883 863 { 884 864 [CATransaction begin]; 885 [CATransaction set DisableActions:YES];865 [CATransaction setValue:[NSNumber numberWithBool:YES] forKey:kCATransactionDisableActions]; 886 866 [rendererLayer retain]; 887 867 [_rendererLayer removeFromSuperlayer];
Note: See TracChangeset
for help on using the changeset viewer.