Commit b2902814 authored by vestbo@webkit.org's avatar vestbo@webkit.org

2008-11-06 Tor Arne Vestbø <tavestbo@trolltech.com>

        Reviewed by Simon Hausmann.

        Repaint video on UpdateRequest to prevent recursive painting

        Calling QWidget::render() to update the video generates a paint
        event that's then picked up by the event filter once more :(

        We're really only interested in updates from Phonon, which we
        get through the UpdateRequest for each new frame.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fdde27dd
2008-11-06 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon Hausmann.
Repaint video on UpdateRequest to prevent recursive painting
Calling QWidget::render() to update the video generates a paint
event that's then picked up by the event filter once more :(
We're really only interested in updates from Phonon, which we
get through the UpdateRequest for each new frame.
* platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
(WebCore::MediaPlayerPrivate::eventFilter):
2008-11-06 Cameron Zwarich <zwarich@apple.com>
Not reviewed.
......@@ -430,7 +430,7 @@ IntSize MediaPlayerPrivate::naturalSize() const
bool MediaPlayerPrivate::eventFilter(QObject* obj, QEvent* event)
{
if (event->type() == QEvent::Paint)
if (event->type() == QEvent::UpdateRequest)
m_player->repaint();
return QObject::eventFilter(obj, event);
......
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