| Summary: | [GPUP] A small video element enters fullscreen with strange animations | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Peng Liu <peng.liu6> | ||||||||||
| Component: | Media | Assignee: | Peng Liu <peng.liu6> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Peng Liu
2021-05-07 16:29:23 PDT
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]. |