2010-10-27 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Oct 2010 16:47:46 +0000 (16:47 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Oct 2010 16:47:46 +0000 (16:47 +0000)
commitc9df49d839125698b9b353768b2b710f51eb0d89
tree6bf3d6197fc4be36fa3ef2f2e60038b7f9439c59
parent99872bf6ca00c078923580adbfb5a2b9672390fc
2010-10-27  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Accelerated animation with missing values in keyframes is broken
        https://bugs.webkit.org/show_bug.cgi?id=48395

        r66339 changed the behavior of keyframe animations such that if a property
        is missing from a keyframe, the property will be interpolated between those
        keyframes that do have a value for the property. If a value is missing
        from the first or last keyframes, the element's unanimated style supplies
        that value.

        However, accelerated animations had a bug where if a value was missing
        from the first (and maybe subsequent) or last (and maybe preceding) keyframes,
        the animation data given to the GraphicsLayer would be missing the style from the
        first or final keyframe.

        Tests: animations/missing-values-first-keyframe.html
               animations/missing-values-last-keyframe.html

        * rendering/RenderLayerBacking.cpp:
        (WebCore::RenderLayerBacking::startAnimation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/animations/missing-values-first-keyframe-expected.checksum [new file with mode: 0644]
LayoutTests/animations/missing-values-first-keyframe-expected.png [new file with mode: 0644]
LayoutTests/animations/missing-values-first-keyframe-expected.txt [new file with mode: 0644]
LayoutTests/animations/missing-values-first-keyframe.html [new file with mode: 0644]
LayoutTests/animations/missing-values-last-keyframe-expected.checksum [new file with mode: 0644]
LayoutTests/animations/missing-values-last-keyframe-expected.png [new file with mode: 0644]
LayoutTests/animations/missing-values-last-keyframe-expected.txt [new file with mode: 0644]
LayoutTests/animations/missing-values-last-keyframe.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderLayerBacking.cpp