Changeset 60156 in webkit


Ignore:
Timestamp:
May 25, 2010 5:44:36 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-05-25 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>

Reviewed by Laszlo Gombos.

[Qt] Running with accelerated compositing enabled sometimes result in a crash
https://bugs.webkit.org/show_bug.cgi?id=39609

Check if we have a scene before applying the workaround for
the QGraphicsScene bug where opacity change doesn't always have
immediate effect.

  • platform/graphics/qt/GraphicsLayerQt.cpp: (WebCore::OpacityAnimationQt::applyFrame):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60155 r60156  
     12010-05-25  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        [Qt] Running with accelerated compositing enabled sometimes result in a crash
     6        https://bugs.webkit.org/show_bug.cgi?id=39609
     7
     8        Check if we have a scene before applying the workaround for
     9        the QGraphicsScene bug where opacity change doesn't always have
     10        immediate effect.
     11
     12        * platform/graphics/qt/GraphicsLayerQt.cpp:
     13        (WebCore::OpacityAnimationQt::applyFrame):
     14
    1152010-05-25  Yury Semikhatsky  <yurys@chromium.org>
    216
  • trunk/WebCore/platform/graphics/qt/GraphicsLayerQt.cpp

    r60040 r60156  
    13621362            setCurrentTime(1);
    13631363    }
     1364
    13641365    virtual void applyFrame(const qreal& fromValue, const qreal& toValue, qreal progress)
    13651366    {
     
    13681369        // FIXME: This is a hack, due to a probable QGraphicsScene bug.
    13691370        // Without this the opacity change doesn't always have immediate effect.
    1370         if (!m_layer.data()->opacity() && opacity)
     1371        if (m_layer.data()->scene() && !m_layer.data()->opacity() && opacity)
    13711372            m_layer.data()->scene()->update();
    13721373
Note: See TracChangeset for help on using the changeset viewer.