2011-02-20 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Feb 2011 03:26:11 +0000 (03:26 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Feb 2011 03:26:11 +0000 (03:26 +0000)
commitff99e0eb22e042f1a81dbc0ede5d62f9a85df0e9
treef706ae20504cff486c3395ace36953d29e4940b1
parentd2e3585feedbcc786a8c74e6ad5af3ece8ce4a3d
2011-02-20  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dirk Schulze.

        REGRESSION (r73369-r73405): transform animation interpolates incorrectly
        https://bugs.webkit.org/show_bug.cgi?id=54793

        After the refactoring in r73380, the ending state for some types of
        accelerated animations was computed incorrectly, because the TransformationMatrix
        wasn't reset to identity before the ending value transformations were applied.

        Fix by cleaning up the code to use explicit, separate values for
        starting and ending values. Only matrix-type animations had this
        issue, but cleaned up other clauses similarly.

        Test: animations/3d/matrix-transform-type-animation.html

        * platform/graphics/ca/GraphicsLayerCA.cpp:
        (WebCore::GraphicsLayerCA::setTransformAnimationEndpoints):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@79168 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/animations/3d/matrix-transform-type-animation.html [new file with mode: 0644]
LayoutTests/platform/mac/animations/3d/matrix-transform-type-animation-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/animations/3d/matrix-transform-type-animation-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/animations/3d/matrix-transform-type-animation-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp