[webkit-changes] [WebKit/WebKit] e6ca3e: [Mac] Video in pip snaps to incorrect size

Jer Noble noreply at github.com
Wed Mar 8 13:07:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6ca3e308980d3dd33f50f102d4ea0f484c52577
      https://github.com/WebKit/WebKit/commit/e6ca3e308980d3dd33f50f102d4ea0f484c52577
  Author: Jer Noble <jer.noble at apple.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp

  Log Message:
  -----------
  [Mac] Video in pip snaps to incorrect size
https://bugs.webkit.org/show_bug.cgi?id=253587
rdar://106430764

Reviewed by Eric Carlson.

Stop recreating the WKVideoLayerRemote every time MediaPlayerPrivateRemote::platformLayer()
is called. The m_videoInlineSize is wrong when in PiP mode, and this causes the video to
resize to an incorrect size while in PiP.

* Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:
(WebKit::MediaPlayerPrivateRemote::platformLayer const):

Canonical link: https://commits.webkit.org/261383@main




More information about the webkit-changes mailing list