haikuwebkit/LayoutTests/svg/animations/animateMotion-additive-2a-e...

25 lines
1.3 KiB
XML
Raw Permalink Normal View History

SVGAnimateMotion does not handle accumulation https://bugs.webkit.org/show_bug.cgi?id=18564 Reviewed by Antti Koivisto. Source/WebCore: Implement accumulation for <animateMotion>. Add lots of new reftests, verifying additive/accumulate behavior is correct. Tests: svg/animations/animateMotion-additive-1-expected.svg svg/animations/animateMotion-additive-1.svg svg/animations/animateMotion-additive-2a-expected.svg svg/animations/animateMotion-additive-2a.svg svg/animations/animateMotion-additive-2b-expected.svg svg/animations/animateMotion-additive-2b.svg svg/animations/animateMotion-additive-2c-expected.svg svg/animations/animateMotion-additive-2c.svg svg/animations/animateMotion-additive-2d-expected.svg svg/animations/animateMotion-additive-2d.svg svg/animations/mozilla/animateMotion-by-1-expected.svg svg/animations/mozilla/animateMotion-by-1.svg svg/animations/mozilla/animateMotion-from-to-1-expected.svg svg/animations/mozilla/animateMotion-from-to-1.svg svg/animations/mozilla/animateMotion-indefinite-to-1-expected.svg svg/animations/mozilla/animateMotion-indefinite-to-1.svg svg/animations/mozilla/animateMotion-indefinite-to-2-expected.svg svg/animations/mozilla/animateMotion-indefinite-to-2.svg svg/animations/mozilla/animateMotion-mpath-pathLength-1-expected.svg svg/animations/mozilla/animateMotion-mpath-pathLength-1.svg svg/animations/mozilla/animateMotion-mpath-targetChange-1-expected.svg svg/animations/mozilla/animateMotion-mpath-targetChange-1.svg svg/animations/mozilla/animateMotion-to-overridden-1-expected.svg svg/animations/mozilla/animateMotion-to-overridden-1.svg * svg/SVGAnimateMotionElement.cpp: (WebCore::SVGAnimateMotionElement::SVGAnimateMotionElement): (WebCore::SVGAnimateMotionElement::buildTransformForProgress): (WebCore::SVGAnimateMotionElement::calculateAnimatedValue): * svg/SVGAnimateMotionElement.h: LayoutTests: Import mozilla <animateMotion> reftests, and two testscases from Dr. Olaf Hoffmanns SVG test suite, covering all additive/accumulate modes for <animateMotion>. * svg/animations/animateMotion-additive-1-expected.svg: Added. * svg/animations/animateMotion-additive-1.svg: Added. * svg/animations/animateMotion-additive-2a-expected.svg: Added. * svg/animations/animateMotion-additive-2a.svg: Added. * svg/animations/animateMotion-additive-2b-expected.svg: Added. * svg/animations/animateMotion-additive-2b.svg: Added. * svg/animations/animateMotion-additive-2c-expected.svg: Added. * svg/animations/animateMotion-additive-2c.svg: Added. * svg/animations/animateMotion-additive-2d-expected.svg: Added. * svg/animations/animateMotion-additive-2d.svg: Added. * svg/animations/mozilla/animateMotion-by-1-expected.svg: Added. * svg/animations/mozilla/animateMotion-by-1.svg: Added. * svg/animations/mozilla/animateMotion-from-to-1-expected.svg: Added. * svg/animations/mozilla/animateMotion-from-to-1.svg: Added. * svg/animations/mozilla/animateMotion-indefinite-to-1-expected.svg: Added. * svg/animations/mozilla/animateMotion-indefinite-to-1.svg: Added. * svg/animations/mozilla/animateMotion-indefinite-to-2-expected.svg: Added. * svg/animations/mozilla/animateMotion-indefinite-to-2.svg: Added. * svg/animations/mozilla/animateMotion-mpath-pathLength-1-expected.svg: Added. * svg/animations/mozilla/animateMotion-mpath-pathLength-1.svg: Added. * svg/animations/mozilla/animateMotion-mpath-targetChange-1-expected.svg: Added. * svg/animations/mozilla/animateMotion-mpath-targetChange-1.svg: Added. * svg/animations/mozilla/animateMotion-to-overridden-1-expected.svg: Added. * svg/animations/mozilla/animateMotion-to-overridden-1.svg: Added. Canonical link: https://commits.webkit.org/102675@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-28 08:22:07 +00:00
<?xml version="1.0" encoding="iso-8859-1" ?>
<svg viewBox="0 0 500 350" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<path id="fromto" d="M-15,-20L-20,20 20,20C-10,-10 30,-20 -15,-20Z"/>
<path id="fromby" d="M-20,-15L-20,15 20,20C20,0 -10,-20 -20,-15Z"/>
<path id="by" d="M-20,-20C100,80 40,-60 20,20Z"/>
</defs>
<rect x="0" y="0" width="500" height="350" fill="#fff" />
<g fill="none" stroke="#f00" stroke-width="10" stroke-linejoin="bevel">
<use xlink:href="#fromto" x="40" y="80" stroke="#800" transform="translate(110,140)"/>
<use xlink:href="#fromto" x="40" y="80" stroke="#f00" transform="translate(110,140)"/>
<use xlink:href="#fromto" x="40" y="80" stroke="#88f" transform="translate(110,140)"/>
<use xlink:href="#fromby" x="160" y="80" stroke="#800" transform="translate(110,140)"/>
<use xlink:href="#fromby" x="160" y="80" stroke="#f00" transform="translate(110,140)"/>
<use xlink:href="#fromby" x="160" y="80" stroke="#88f" transform="translate(110,140)"/>
<use xlink:href="#by" x="300" y="200" stroke="#800" transform="translate(80,-70)"/>
<use xlink:href="#by" x="300" y="200" stroke="#f00" transform="translate(80,-70)"/>
<use xlink:href="#by" x="300" y="200" stroke="#88f" transform="translate(80,-70)"/>
</g>
</svg>