summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/html/HTMLVideoElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLVideoElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLVideoElement.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebCore/html/HTMLVideoElement.cpp b/Source/WebCore/html/HTMLVideoElement.cpp
index 4ddcdfe..5b7f42d 100644
--- a/Source/WebCore/html/HTMLVideoElement.cpp
+++ b/Source/WebCore/html/HTMLVideoElement.cpp
@@ -129,6 +129,11 @@ bool HTMLVideoElement::supportsFullscreen() const
return false;
// Check with the platform client.
+#if ENABLE(FULLSCREEN_API)
+ if (page->chrome()->client()->supportsFullScreenForElement(this, false))
+ return true;
+#endif
+
return page->chrome()->client()->supportsFullscreenForNode(this);
}
@@ -183,7 +188,7 @@ void HTMLVideoElement::setDisplayMode(DisplayMode mode)
if (oldMode != Video && player())
player()->prepareForRendering();
if (!hasAvailableVideoFrame())
- mode = Poster;
+ mode = PosterWaitingForVideo;
}
} else if (oldMode != Video && player())
player()->prepareForRendering();