Simplify the animated attribute interface in SVGElement
ResetAnimatedType() and ApplyResultsToTarget() are always called in "sequence" by the one method (SMILAnimationSandwich::ApplyAnimationValues), so we can move the call to SetAnimatedAttribute() to the latter method. Then we fold the calls to InvalidateAnimatedAttribute() into the Set/ClearAnimatedAttribute calls. Also simplify Set/ClearWebAnimatedAttributes() since they can now trivially call into the modified versions of Set/ClearAnimatedAttribute(). For SVGAnimateMotionElement, move the invalidation of the target from CalculateAnimatedValue() to ApplyResultsToTarget(). Bug: 1017723 Change-Id: I6ee237aa1be725db44b02212fe8a1bff1cd5e16b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1878771Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#709572}
Showing
Please register or sign in to comment