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

Changeset 201569 in webkit


Ignore:
Timestamp:
Jun 1, 2016, 2:31:46 PM (10 years ago)
Author:
bshafiei@apple.com
Message:

Merge r201567. rdar://problem/25388848

Location:
branches/safari-602.1.32-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-602.1.32-branch/Source/WebCore/ChangeLog

    r201514 r201569  
     12016-06-01  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r201567. rdar://problem/25388848
     4
     5    2016-06-01  Jer Noble  <jer.noble@apple.com>
     6
     7            setVideoFullscreenGravity() has no effect on the fullscreen video layer
     8            https://bugs.webkit.org/show_bug.cgi?id=158267
     9
     10            Reviewed by Eric Carlson.
     11
     12            When we moved to a 2-AVPlayerLayer solution, we didn't update setVideoFullscreenGravity()
     13            to change the correct layer's videoGravity property.
     14
     15            * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     16            (WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenGravity):
     17
    1182016-05-31  Babak Shafiei  <bshafiei@apple.com>
    219
  • branches/safari-602.1.32-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r201514 r201569  
    12201220{
    12211221    m_videoFullscreenGravity = gravity;
    1222     if (!m_videoLayer)
     1222
     1223    auto activeLayer = m_secondaryVideoLayer.get() ?: m_videoLayer.get();
     1224    if (!activeLayer)
    12231225        return;
    12241226
     
    12331235        ASSERT_NOT_REACHED();
    12341236   
    1235     if ([m_videoLayer videoGravity] == videoGravity)
    1236         return;
    1237 
    1238     [m_videoLayer setVideoGravity:videoGravity];
     1237    if ([activeLayer videoGravity] == videoGravity)
     1238        return;
     1239
     1240    [activeLayer setVideoGravity:videoGravity];
    12391241    syncTextTrackBounds();
    12401242}
Note: See TracChangeset for help on using the changeset viewer.