diff options
Diffstat (limited to 'WebCore/html/HTMLVideoElement.cpp')
| -rw-r--r-- | WebCore/html/HTMLVideoElement.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/WebCore/html/HTMLVideoElement.cpp b/WebCore/html/HTMLVideoElement.cpp index 5bbc167..d0b1042 100644 --- a/WebCore/html/HTMLVideoElement.cpp +++ b/WebCore/html/HTMLVideoElement.cpp @@ -35,6 +35,7 @@ #include "HTMLImageLoader.h" #include "HTMLNames.h" #include "MappedAttribute.h" +#include "Page.h" #include "RenderImage.h" #include "RenderVideo.h" @@ -119,9 +120,10 @@ bool HTMLVideoElement::supportsFullscreen() const if (!page) return false; - if (!m_player || !m_player->supportsFullscreen()) + if (!m_player || !m_player->supportsFullscreen() || !m_player->hasVideo()) return false; - + + // Check with the platform client. return page->chrome()->client()->supportsFullscreenForNode(this); } |
