Separate animation argument validation from interval update
Animation arguments/value computations shouldn't be tied to interval update, it should only "react" to progress. Turn the |animation_valid_| bool into an tristate (enum) and refactor the validation of animation parameters to suit. The UpdateAnimation(...) override now performs the validation (if needed). Implement WillChangeAnimationTarget() for SVGAnimationElement and invalidate animations there. Then fold SVGAnimateElement::ResetCachedAnimationState into the corresponding override in SVGAnimateElement, removing the calls that is now handled by the superclass. Bug: 998526 Change-Id: I30ad39d5599839dcdd6b4d34573be027f3b42f2b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866519Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#707280}
Showing
Please register or sign in to comment