summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLVideoElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLVideoElement.h')
-rw-r--r--WebCore/html/HTMLVideoElement.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/html/HTMLVideoElement.h b/WebCore/html/HTMLVideoElement.h
index e7c3f34..04a0beb 100644
--- a/WebCore/html/HTMLVideoElement.h
+++ b/WebCore/html/HTMLVideoElement.h
@@ -55,11 +55,11 @@ public:
void webkitEnterFullScreen(bool isUserGesture, ExceptionCode& ec) { webkitEnterFullscreen(isUserGesture, ec); }
void webkitExitFullScreen() { webkitExitFullscreen(); }
- bool shouldDisplayPosterImage() const { return m_shouldDisplayPosterImage; }
-
// Used by canvas to gain raw pixel access
void paintCurrentFrameInContext(GraphicsContext*, const IntRect&);
+ bool shouldDisplayPosterImage() const { return displayMode() == Poster; }
+
private:
HTMLVideoElement(const QualifiedName&, Document*);
@@ -78,11 +78,14 @@ private:
virtual const QualifiedName& imageSourceAttributeName() const;
virtual bool hasAvailableVideoFrame() const;
- virtual void updatePosterImage();
+ virtual void updateDisplayState();
+
virtual void willMoveToNewOwnerDocument();
+ virtual void setDisplayMode(DisplayMode);
+
OwnPtr<HTMLImageLoader> m_imageLoader;
- bool m_shouldDisplayPosterImage;
+
};
} //namespace