Remove SMILAnimationEffectParameters::is_to_animation
The effect of this parameter can be described using the other parameters (is_additive = is_cumulative = false). For list types it was previously used to avoid copying a list into itself (clobbering it in the process), but that can achieved by just comparing objects. Similar techniques were applied in SVGPath and SVGTransformList, but those classes could deal with the issue differently. Rewrite SVGPath::CalculateAnimatedValue() to eliminate the extra copy which should (no longer) be needed. Change SVGTransformList::CalculateAnimatedValue() to compute the transform first and then handle addition. Also re-order the computations to try to get a somewhat canonical order: interpolation, accumulation, addition. In SVGAnimateMotionElement, always set |to_point_at_end_of_duration_| instead of setting and checking a separate bool. AnimateAdditiveNumber() handles the accumulation if required. Bug: 1017723 Change-Id: I8adb2a7ad415a2d00aa057bfb93f55953450dd07 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382111 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#803060}
Showing
Please register or sign in to comment