diff options
Diffstat (limited to 'WebCore/html/HTMLVideoElement.cpp')
-rw-r--r-- | WebCore/html/HTMLVideoElement.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/WebCore/html/HTMLVideoElement.cpp b/WebCore/html/HTMLVideoElement.cpp index a6fdb5f..bfdf241 100644 --- a/WebCore/html/HTMLVideoElement.cpp +++ b/WebCore/html/HTMLVideoElement.cpp @@ -101,7 +101,6 @@ void HTMLVideoElement::parseMappedAttribute(Attribute* attr) const QualifiedName& attrName = attr->name(); if (attrName == posterAttr) { - m_posterURL = getNonEmptyURLAttribute(posterAttr); updatePosterImage(); if (m_shouldDisplayPosterImage) { #if !ENABLE(PLUGIN_PROXY_FOR_VIDEO) @@ -110,7 +109,7 @@ void HTMLVideoElement::parseMappedAttribute(Attribute* attr) m_imageLoader->updateFromElementIgnoringPreviousError(); #else if (player()) - player()->setPoster(poster()); + player()->setPoster(getNonEmptyURLAttribute(posterAttr)); #endif } } else if (attrName == widthAttr) @@ -179,7 +178,7 @@ void HTMLVideoElement::updatePosterImage() bool oldShouldShowPosterImage = m_shouldDisplayPosterImage; #endif - m_shouldDisplayPosterImage = !poster().isEmpty() && !hasAvailableVideoFrame(); + m_shouldDisplayPosterImage = !getAttribute(posterAttr).isEmpty() && !hasAvailableVideoFrame(); #if !ENABLE(PLUGIN_PROXY_FOR_VIDEO) if (renderer() && oldShouldShowPosterImage != m_shouldDisplayPosterImage) |