Changeset 172244 in webkit
- Timestamp:
- Aug 7, 2014, 1:41:23 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r172235 r172244 1 2014-08-06 Jeremy Jones <jeremyj@apple.com> 2 3 Disable implicit animations on video layer. 4 https://bugs.webkit.org/show_bug.cgi?id=135679 5 6 Reviewed by Eric Carlson. 7 8 Disable implicit animations on AVPlayerLayer except when setting fullscreen frame. 9 This prevents unwanted animations. 10 11 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 12 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerLayer): disable implicit animations 13 (WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenFrame): allow implicit animations while changing fullscreen frame. 14 1 15 2014-08-07 Gordon Sheridan <gordon_sheridan@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r171895 r172244 55 55 #import "VideoTrackPrivateAVFObjC.h" 56 56 #import "WebCoreAVFResourceLoader.h" 57 #import "WebCoreCALayerExtras.h" 57 58 #import "WebCoreSystemInterface.h" 58 59 #import <objc/runtime.h> … … 596 597 597 598 #if PLATFORM(IOS) 599 [m_videoLayer web_disableAllActions]; 598 600 m_videoInlineLayer = adoptNS([[WebVideoContainerLayer alloc] init]); 599 601 [m_videoInlineLayer setFrame:CGRectMake(0, 0, defaultSize.width(), defaultSize.height())]; … … 1004 1006 1005 1007 if (m_videoLayer) { 1008 [m_videoLayer setStyle:nil]; // This enables actions, i.e. implicit animations. 1006 1009 [CATransaction begin]; 1007 [CATransaction setDisableActions:YES];1008 1010 [m_videoLayer setFrame:CGRectMake(0, 0, frame.width(), frame.height())]; 1009 1011 [CATransaction commit]; 1012 [m_videoLayer web_disableAllActions]; 1010 1013 } 1011 1014 syncTextTrackBounds();
Note:
See TracChangeset
for help on using the changeset viewer.