Changeset 60040 in webkit


Ignore:
Timestamp:
May 23, 2010 4:59:16 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-05-23 Noam Rosenthal <noam.rosenthal@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Using Accelerated Composing the rocket back animation on http://www.the-art-of-web.com/css/css-animation/ works differently as when not using AC.
https://bugs.webkit.org/show_bug.cgi?id=39513

The value of GraphicsLayer->transform() needs to be changed during the animation, regardless of m_fillsForward.
m_fillsForward should only apply at the end of the animation. Based on previous patch by Kenneth Christiansen.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60038 r60040  
     12010-05-23  Noam Rosenthal  <noam.rosenthal@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Using Accelerated Composing the rocket back animation on http://www.the-art-of-web.com/css/css-animation/ works differently as when not using AC.
     6        https://bugs.webkit.org/show_bug.cgi?id=39513
     7
     8        The value of GraphicsLayer->transform() needs to be changed during the animation, regardless of m_fillsForward.
     9        m_fillsForward should only apply at the end of the animation. Based on previous patch by Kenneth Christiansen.
     10
     11        * platform/graphics/qt/GraphicsLayerQt.cpp:
     12        (WebCore::TransformAnimationQt::applyFrame):
     13        (WebCore::OpacityAnimationQt::applyFrame):
     14
    1152010-05-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    216
  • trunk/WebCore/platform/graphics/qt/GraphicsLayerQt.cpp

    r60038 r60040  
    13211321        }
    13221322
     1323        m_layer.data()->m_layer->setTransform(transformMatrix);
     1324        // We force the actual opacity change, otherwise it would be ignored because of the animation.
    13231325        m_layer.data()->setBaseTransform(transformMatrix);
    1324         if (m_fillsForwards)
    1325             m_layer.data()->m_layer->setTransform(m_layer.data()->m_baseTransform);
    13261326    }
    13271327
     
    13711371            m_layer.data()->scene()->update();
    13721372
     1373        m_layer.data()->m_layer->setOpacity(opacity);
     1374        // We force the actual opacity change, otherwise it would be ignored because of the animation.
    13731375        m_layer.data()->setOpacity(opacity);
    1374         if (m_fillsForwards)
    1375             m_layer.data()->m_layer->setOpacity(opacity);
    13761376    }
    13771377
Note: See TracChangeset for help on using the changeset viewer.