Commit 8eecdc68 authored by antti's avatar antti

Reviewed by Adele.

        Fix occasional blank video with poster attribute.

        * ChangeLog:
        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::load):
        (WebCore::HTMLMediaElement::didRestoreFromCache):
        Just calling updateFromElement() does the right thing for both poster image and video.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 657aafdb
2007-11-09 Antti Koivisto <antti@apple.com>
Reviewed by Adele.
Fix occasional blank video with poster attribute.
* ChangeLog:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::load):
(WebCore::HTMLMediaElement::didRestoreFromCache):
Just calling updateFromElement() does the right thing for both poster image and video.
2007-11-04 Sam Weinig <sam@webkit.org>
Reviewed by Adam Roben.
......
......@@ -298,10 +298,8 @@ void HTMLMediaElement::load(ExceptionCode& ec)
if (m_loadNestingLevel < m_terminateLoadBelowNestingLevel)
goto end;
if (renderer()) {
if (renderer())
renderer()->updateFromElement();
m_movie->setVisible(true);
}
// 14
m_previousProgressTime = WebCore::currentTime();
......@@ -996,7 +994,7 @@ void HTMLMediaElement::didRestoreFromCache()
if (m_wasPlayingBeforeMovingToPageCache)
play(ec);
if (renderer())
m_movie->setVisible(true);
renderer()->updateFromElement();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment