Simplify SVGAnimationElement::IsAdditive
Hoist the check for 'by' animations out of IsAdditive() and leave it to only check the 'additive' attribute value. The SVGAnimateElement::IsAdditive() override can be removed since the additional check for non-additive types is handled during the animation value calculation, and non-additive types are rejected while validating the animation parameters. While at it, randomly add some comments for additive handling, and add more comments in OverwritesUnderlyingAnimationValue(). Also make IsAdditive(), IsAccumulated(), GetAnimationMode() and GetCalcMode() non-public as appropriate. Bug: 1017723 Change-Id: I0907742ca1e568ba6faee1b08199bccad683a5e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2379919Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#803032}
Showing
Please register or sign in to comment