RESOLVED FIXED 189506
Add missing #if ENABLE(VIDEO) WebProcess/FullScreen/WebFullScreenManager.cpp
https://bugs.webkit.org/show_bug.cgi?id=189506
Summary Add missing #if ENABLE(VIDEO) WebProcess/FullScreen/WebFullScreenManager.cpp
Pablo Saavedra
Reported 2018-09-11 10:48:24 PDT
the use of `m_pipStandbyElement` must be guarded with ENABLE(VIDEO), otherwise a compilation error occurs with the VIDEO feature turned off m_pipStandbyElement is only defined in Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.h when ENABLE(VIDEO): ``` #if ENABLE(VIDEO) RefPtr<WebCore::HTMLVideoElement> m_pipStandbyElement; #endif ```
Attachments
patch (1.82 KB, patch)
2018-09-11 10:59 PDT, Pablo Saavedra
no flags
Pablo Saavedra
Comment 1 2018-09-11 10:59:31 PDT
Tim Horton
Comment 2 2018-09-11 11:00:29 PDT
Comment on attachment 349412 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=349412&action=review > Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:102 > +#if ENABLE(VIDEO) !ENABLE(VIDEO) knows what HTMLVideoElement is, though??
Pablo Saavedra
Comment 3 2018-09-11 11:03:25 PDT
WebKit Commit Bot
Comment 4 2018-09-11 11:38:36 PDT
Comment on attachment 349412 [details] patch Clearing flags on attachment: 349412 Committed r235906: <https://trac.webkit.org/changeset/235906>
WebKit Commit Bot
Comment 5 2018-09-11 11:38:37 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2018-09-11 11:39:22 PDT
Pablo Saavedra
Comment 7 2018-09-11 11:43:05 PDT
(In reply to Tim Horton from comment #2) > Comment on attachment 349412 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=349412&action=review > > > Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:102 > > +#if ENABLE(VIDEO) > > !ENABLE(VIDEO) knows what HTMLVideoElement is, though?? (In reply to Tim Horton from comment #2) > Comment on attachment 349412 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=349412&action=review > > > Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:102 > > +#if ENABLE(VIDEO) > > !ENABLE(VIDEO) knows what HTMLVideoElement is, though?? WebCore/html/HTMLVideoElement.h Yes, it seems HTMLVideoElement is declared in the Webcore namespace in the top `WebKit/WebProcess/FullScreen/WebFullScreenManager.h` namespace WebCore { class IntRect; class Element; class GraphicsLayer; class HTMLVideoElement; } Since HTMLVideoElement is not actually used in a statement but in a declaration in the signature of the function is the reason why is valid.
Note You need to log in before you can comment on or make changes to this bug.