[Qt] Ensure we always report a valid size for the video
authorTor Arne Vestbø <vestbo@webkit.org>
Thu, 30 Sep 2010 12:29:03 +0000 (12:29 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 20 Jan 2011 19:56:20 +0000 (16:56 -0300)
commit67e978ded543d500adbaf3976da4280bb4aee43c
treed6b91ea6066eb7a574ec7ab4765996ec78b470bb
parent156a8bb65f6ea6c4d60d981ab8ff9ffa186345b8
[Qt] Ensure we always report a valid size for the video

Reviewed by Simon Hausmann.

Some QtMultimedia-backends require a paint before even giving us
a size, so we start out by using the default video size, and then
update it once QtMultimedia starts feeding us valid sizes.

* platform/graphics/qt/MediaPlayerPrivateQt.cpp:
(WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt):
(WebCore::MediaPlayerPrivateQt::nativeSizeChanged):
(WebCore::MediaPlayerPrivateQt::setSize):
(WebCore::MediaPlayerPrivateQt::naturalSize):
* platform/graphics/qt/MediaPlayerPrivateQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
WebCore/platform/graphics/qt/MediaPlayerPrivateQt.h