Don't allow `display:none` on a video element ancestor when in fullscreen.
<rdar://problem/58875327>
Created attachment 397189 [details] Patch
Comment on attachment 397189 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397189&action=review > Source/WebCore/style/StyleAdjuster.cpp:37 > +#include "HTMLDivElement.h" Also need to include "HTMLVideoElement.h". > Source/WebCore/style/StyleAdjuster.cpp:565 > + if (video && is<HTMLVideoElement>(video) && downcast<HTMLVideoElement>(*video).isFullscreen()) No needful the "video &&" part, since is<>(video) does a null check.
Created attachment 397202 [details] Patch
Created attachment 397206 [details] Patch
Comment on attachment 397189 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397189&action=review >> Source/WebCore/style/StyleAdjuster.cpp:565 >> + if (video && is<HTMLVideoElement>(video) && downcast<HTMLVideoElement>(*video).isFullscreen()) > > No needful the "video &&" part, since is<>(video) does a null check. Good point, thanks.
Committed r260524: <https://trac.webkit.org/changeset/260524> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397206 [details].