Apply custom property animations with CSSVariableAnimator.
Currently, custom property animations are applied in quite a roundabout way: StyleResolver applies the value assisted by CSSVariableResolver, which may call into StyleResolver again depending on the variables it sees during resolution. It has a const_cast. It side-channels a HashSet via StyleResolverState. It's just not nice. To fix this, create CSSVariableAnimator which owns the state and functionality we need to apply the animated properties (in the right order). This is a pure refactor. It is already covered well by tests, specifically by animations/custom-properties/registered-var*. Change-Id: I6ed4ef2457f990d89930a5c802e01e64ac420174 Reviewed-on: https://chromium-review.googlesource.com/1243087Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Commit-Queue: Anders Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#595030}
Showing
Please register or sign in to comment