Have SVGAnimatedPropertyCommon::current_value_ always be set
Rather than having |current_value_| be null when an animation is not active, have it point to the same value as |base_value_|. This avoids having to null-check |current_value_| for each access (in CurrentValue). Bug: 1017723 Change-Id: I39c56ec30ee9c92692db4f68be49a8094bf012b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1932542Reviewed-by:Stephen Chenney <schenney@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#719070}
Showing
Please register or sign in to comment