diff options
Diffstat (limited to 'WebCore/html/HTMLVideoElement.cpp')
-rw-r--r-- | WebCore/html/HTMLVideoElement.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/WebCore/html/HTMLVideoElement.cpp b/WebCore/html/HTMLVideoElement.cpp index ecd74e7..5bbc167 100644 --- a/WebCore/html/HTMLVideoElement.cpp +++ b/WebCore/html/HTMLVideoElement.cpp @@ -28,6 +28,7 @@ #if ENABLE(VIDEO) #include "HTMLVideoElement.h" +#include "ChromeClient.h" #include "CSSHelper.h" #include "CSSPropertyNames.h" #include "Document.h" @@ -112,6 +113,18 @@ void HTMLVideoElement::parseMappedAttribute(MappedAttribute* attr) HTMLMediaElement::parseMappedAttribute(attr); } +bool HTMLVideoElement::supportsFullscreen() const +{ + Page* page = document() ? document()->page() : 0; + if (!page) + return false; + + if (!m_player || !m_player->supportsFullscreen()) + return false; + + return page->chrome()->client()->supportsFullscreenForNode(this); +} + unsigned HTMLVideoElement::videoWidth() const { if (!m_player) |