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

Changeset 201567 in webkit


Ignore:
Timestamp:
Jun 1, 2016, 1:55:30 PM (10 years ago)
Author:
jer.noble@apple.com
Message:

setVideoFullscreenGravity() has no effect on the fullscreen video layer
https://bugs.webkit.org/show_bug.cgi?id=158267

Reviewed by Eric Carlson.

When we moved to a 2-AVPlayerLayer solution, we didn't update setVideoFullscreenGravity()
to change the correct layer's videoGravity property.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenGravity):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r201565 r201567  
     12016-06-01  Jer Noble  <jer.noble@apple.com>
     2
     3        setVideoFullscreenGravity() has no effect on the fullscreen video layer
     4        https://bugs.webkit.org/show_bug.cgi?id=158267
     5
     6        Reviewed by Eric Carlson.
     7
     8        When we moved to a 2-AVPlayerLayer solution, we didn't update setVideoFullscreenGravity()
     9        to change the correct layer's videoGravity property.
     10
     11        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     12        (WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenGravity):
     13
    1142016-06-01  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r201526 r201567  
    12191219{
    12201220    m_videoFullscreenGravity = gravity;
    1221     if (!m_videoLayer)
     1221
     1222    auto activeLayer = m_secondaryVideoLayer.get() ?: m_videoLayer.get();
     1223    if (!activeLayer)
    12221224        return;
    12231225
     
    12321234        ASSERT_NOT_REACHED();
    12331235   
    1234     if ([m_videoLayer videoGravity] == videoGravity)
    1235         return;
    1236 
    1237     [m_videoLayer setVideoGravity:videoGravity];
     1236    if ([activeLayer videoGravity] == videoGravity)
     1237        return;
     1238
     1239    [activeLayer setVideoGravity:videoGravity];
    12381240    syncTextTrackBounds();
    12391241}
Note: See TracChangeset for help on using the changeset viewer.