[GPUP] A small video element enters fullscreen with strange animations
<rdar://76770068>
Created attachment 428061 [details] Patch
Created attachment 428065 [details] Fix build failures
Created attachment 428066 [details] Fix build failures (again)
Comment on attachment 428066 [details] Fix build failures (again) View in context: https://bugs.webkit.org/attachment.cgi?id=428066&action=review > Source/WebKit/WebProcess/GPU/media/cocoa/VideoLayerRemoteCocoa.mm:100 > + bool inFullscreenOrPictureInPicture = false; > + if (auto* mediaPlayerPrivateRemote = self.mediaPlayerPrivateRemote) > + inFullscreenOrPictureInPicture = mediaPlayerPrivateRemote->inVideoFullscreenOrPictureInPicture(); > + > + if (inFullscreenOrPictureInPicture) { Nit: this can be simplified slightly to if (auto* mediaPlayerPrivateRemote = self.mediaPlayerPrivateRemote; mediaPlayerPrivateRemote && mediaPlayerPrivateRemote->inVideoFullscreenOrPictureInPicture())
Created attachment 428093 [details] Patch for landing
Comment on attachment 428066 [details] Fix build failures (again) View in context: https://bugs.webkit.org/attachment.cgi?id=428066&action=review >> Source/WebKit/WebProcess/GPU/media/cocoa/VideoLayerRemoteCocoa.mm:100 >> + if (inFullscreenOrPictureInPicture) { > > Nit: this can be simplified slightly to > > if (auto* mediaPlayerPrivateRemote = self.mediaPlayerPrivateRemote; mediaPlayerPrivateRemote && mediaPlayerPrivateRemote->inVideoFullscreenOrPictureInPicture()) Good idea! Fixed.
Committed r277242 (237511@main): <https://commits.webkit.org/237511@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428093 [details].