Invalidate compositor transform animations with percents on box size.
When looping over transform animations in UpdateTransform, originally to check whether they preserve axis alignment, we also check for box size box size dependencies. If such dependencies are found, check whether the relevant sizes have changed (using a current value stored in the KeyframeEffect), and if so, restart the animation on the compositor (note that RestartAnimationOnCompositor is a no-op if the animation is not already composited). This makes composited relative transform keyframes (implemented behind a flag) fully working for CSS boxes, which could potentially be selectively enabled ahead of doing so for SVG. Design doc: https://docs.google.com/document/d/1zgr5CHRMpvlqodn1e0eM9J3MjL2eEMfAHrHsZUK7gMM/ Bug: 389359 Change-Id: I9b8189a3f3e002902b5eec58c08bb54644039536 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2492893 Commit-Queue: George Steel <gtsteel@chromium.org> Reviewed-by:Kevin Ellis <kevers@chromium.org> Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#820296}
Showing
Please register or sign in to comment