Bug 49284 - SVGAnimation calcMode 'spline' should be useable for from-to and from-by animations
Summary: SVGAnimation calcMode 'spline' should be useable for from-to and from-by anim...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Dirk Schulze
URL:
Keywords:
Depends on:
Blocks: 41761
  Show dependency treegraph
 
Reported: 2010-11-09 14:49 PST by Dirk Schulze
Modified: 2010-11-11 10:43 PST (History)
6 users (show)

See Also:


Attachments
calcMode="spline" from-to-animation (468 bytes, image/svg+xml)
2010-11-09 14:51 PST, Dirk Schulze
no flags Details
Patch (31.97 KB, patch)
2010-11-11 06:47 PST, Dirk Schulze
zimmermann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2010-11-09 14:49:59 PST
SVG animations should use from-to-by animations as some kind of fallback, if a values list is not specified. The specification goes a bit more into detail about spline but it's still necessary to investigate what other viewers are doing. See last two paragraphs in http://www.w3.org/TR/SMIL3/smil-animation.html#animationNS-InterpolationKeysplines
Comment 1 Dirk Schulze 2010-11-09 14:51:13 PST
Created attachment 73424 [details]
calcMode="spline" from-to-animation
Comment 2 Dirk Schulze 2010-11-11 06:47:49 PST
Created attachment 73607 [details]
Patch
Comment 3 Nikolas Zimmermann 2010-11-11 06:54:06 PST
Comment on attachment 73607 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=73607&action=review

Tests look great, please change bug title and clarify changelog, r=me.

> WebCore/ChangeLog:5
> +        SVGAnimation calcMode="spline" should use 'to' 'by' animation if no values were specified

The bug title is unclear, wheter you mean 'to-by' animation or 'to or by animation'.

> WebCore/ChangeLog:8
> +        Add support for from-to-by animations in combination with calcMode 'spline' for SVGAnimations.

from-to-by?
you mean from-to / from-by ?

> WebCore/svg/SVGAnimationElement.cpp:515
>          unsigned num = m_keySplines.size() + 1;

s/num/splinesCount/  ?
Comment 4 Dirk Schulze 2010-11-11 09:27:19 PST
Committed r71828: <http://trac.webkit.org/changeset/71828>
Comment 5 Dirk Schulze 2010-11-11 09:42:14 PST
Committed r71830: <http://trac.webkit.org/changeset/71830>
Comment 6 WebKit Review Bot 2010-11-11 10:42:52 PST
http://trac.webkit.org/changeset/71828 might have broken Leopard Intel Release (Tests)
The following tests are not passing:
media/video-played-collapse.html
media/video-played-ranges-1.html
media/video-played-reset.html
Comment 7 WebKit Review Bot 2010-11-11 10:43:06 PST
http://trac.webkit.org/changeset/71830 might have broken Leopard Intel Release (Tests)
The following tests are not passing:
media/video-played-collapse.html
media/video-played-ranges-1.html
media/video-played-reset.html