RESOLVED FIXED 212831
WebCore: Guard variable declarations on ENABLE(VIDEO_PRESENTATION_MODE)
https://bugs.webkit.org/show_bug.cgi?id=212831
Summary WebCore: Guard variable declarations on ENABLE(VIDEO_PRESENTATION_MODE)
Jonathan Bedard
Reported 2020-06-05 09:52:12 PDT
m_isEnteringOrExitingPictureInPicture and m_isWaitingForPictureInPictureWindowFrame are only used if VIDEO_PRESENTATION_MODE is enabled, no reason to declare these variable on platforms with VIDEO_PRESENTATION_MODE disabled.
Attachments
Patch (1.34 KB, patch)
2020-06-05 10:00 PDT, Jonathan Bedard
no flags
Radar WebKit Bug Importer
Comment 1 2020-06-05 09:52:35 PDT
Jonathan Bedard
Comment 2 2020-06-05 10:00:00 PDT
Tim Horton
Comment 3 2020-06-05 10:29:01 PDT
IMO you can land things like this as "build fixes" without review if you want.
Jonathan Bedard
Comment 4 2020-06-05 10:38:06 PDT
(In reply to Tim Horton from comment #3) > IMO you can land things like this as "build fixes" without review if you > want. There aren't many this trivial, I'm trying separate these into small enough changes that roll-outs for breaking other builds won't be too painful.
EWS
Comment 5 2020-06-05 10:56:02 PDT
Committed r262633: <https://trac.webkit.org/changeset/262633> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401166 [details].
Peng Liu
Comment 6 2020-06-05 11:00:18 PDT
Comment on attachment 401166 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401166&action=review > Source/WebCore/html/HTMLVideoElement.h:136 > bool m_isChangingPresentationMode { false }; And this variable as well :-)
Jonathan Bedard
Comment 7 2020-06-05 14:07:38 PDT
Comment on attachment 401166 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401166&action=review >> Source/WebCore/html/HTMLVideoElement.h:136 >> bool m_isChangingPresentationMode { false }; > > And this variable as well :-) Actually, m_isChangingPresentationMode is used in webkitDisplayingFullscreen, which isn't guarded by ENABLE(VIDEO_PRESENTATION_MODE).
Peng Liu
Comment 8 2020-06-05 14:22:00 PDT
Comment on attachment 401166 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401166&action=review >>> Source/WebCore/html/HTMLVideoElement.h:136 >>> bool m_isChangingPresentationMode { false }; >> >> And this variable as well :-) > > Actually, m_isChangingPresentationMode is used in webkitDisplayingFullscreen, which isn't guarded by ENABLE(VIDEO_PRESENTATION_MODE). Oh right!
Note You need to log in before you can comment on or make changes to this bug.