Changeset 86680 in webkit


Ignore:
Timestamp:
May 17, 2011 10:16:26 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2011-05-17 Sam Magnuson <smagnuson@netflix.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Node that have both an opacity and a transform animation on them seem not to fire.
https://bugs.webkit.org/show_bug.cgi?id=40841

Test: compositing/animation/busy-indicator.html

  • platform/graphics/qt/GraphicsLayerQt.cpp: (WebCore::GraphicsLayerQtImpl::recache): (WebCore::GraphicsLayerQtImpl::flushChanges): (WebCore::GraphicsLayerQt::setContentsToImage): (WebCore::TransformAnimationQt::getAnimatedProperty): (WebCore::OpacityAnimationQt::getAnimatedProperty): (WebCore::GraphicsLayerQt::addAnimation):

2011-05-17 Sam Magnuson <smagnuson@netflix.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Node that have both an opacity and a transform animation on them seem not to fire.
https://bugs.webkit.org/show_bug.cgi?id=40841

  • compositing/animation/busy-indicator-no.png: Added.
  • compositing/animation/busy-indicator.html: Added.
  • compositing/animation/busy-indicator.png: Added.
  • compositing/animation/busy-indicator-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86677 r86680  
     12011-05-17  Sam Magnuson  <smagnuson@netflix.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Node that have both an opacity and a transform animation on them seem not to fire.
     6        https://bugs.webkit.org/show_bug.cgi?id=40841
     7
     8        * compositing/animation/busy-indicator-no.png: Added.
     9        * compositing/animation/busy-indicator.html: Added.
     10        * compositing/animation/busy-indicator.png: Added.
     11        * compositing/animation/busy-indicator-expected.txt: Added.
     12
    1132011-05-17  Andreas Kling  <kling@webkit.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r86679 r86680  
     12011-05-17  Sam Magnuson  <smagnuson@netflix.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Node that have both an opacity and a transform animation on them seem not to fire.
     6        https://bugs.webkit.org/show_bug.cgi?id=40841
     7
     8        Test: compositing/animation/busy-indicator.html
     9
     10        * platform/graphics/qt/GraphicsLayerQt.cpp:
     11        (WebCore::GraphicsLayerQtImpl::recache):
     12        (WebCore::GraphicsLayerQtImpl::flushChanges):
     13        (WebCore::GraphicsLayerQt::setContentsToImage):
     14        (WebCore::TransformAnimationQt::getAnimatedProperty):
     15        (WebCore::OpacityAnimationQt::getAnimatedProperty):
     16        (WebCore::GraphicsLayerQt::addAnimation):
     17
    1182011-05-17  Grace Kloba  <klobag@chromium.org>
    219
  • trunk/Source/WebCore/platform/graphics/qt/GraphicsLayerQt.cpp

    r86666 r86680  
    793793            if (m_pendingContent.contentType != m_currentContent.contentType)
    794794                update();
    795             if (!m_state.drawsContent && m_layer->drawsContent())
     795            else if (!m_state.drawsContent && m_layer->drawsContent())
    796796                update();
    797797
     
    13961396    }
    13971397
     1398
     1399    virtual AnimatedPropertyID animatedProperty() const = 0;
     1400
    13981401    virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
    13991402    {
     
    15291532    }
    15301533
     1534    virtual AnimatedPropertyID animatedProperty() const { return AnimatedPropertyWebkitTransform; }
     1535
    15311536    // The idea is that we let WebCore manage the transform operations and Qt just manage the
    15321537    // animation heartbeat and the bottom-line QTransform. We gain performance, not by using
     
    16001605    }
    16011606
     1607    virtual AnimatedPropertyID animatedProperty() const { return AnimatedPropertyOpacity; }
     1608
    16021609    virtual void applyFrame(const qreal& fromValue, const qreal& toValue, qreal progress)
    16031610    {
     
    16411648        if (*it) {
    16421649            AnimationQtBase* curAnimation = static_cast<AnimationQtBase*>(it->data());
    1643             if (curAnimation && curAnimation->m_webkitAnimation == anim)
     1650            if (curAnimation && curAnimation->m_webkitAnimation == anim
     1651                && values.property() == curAnimation->animatedProperty()) {
    16441652                newAnim = curAnimation;
     1653                break;
     1654            }
    16451655        }
    16461656    }
Note: See TracChangeset for help on using the changeset viewer.