Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DCHECK when compositing additive CSS transform animations
Previously CSSTransformNonInterpolableValue assumed that anything that was composited on-top of would be single. However that is not true; in the simple case where there is a replace animation before it, the replace effect will be a pair: target.animate({ transform: [ 'scale(1)', 'scale(2)' ] }, 1000); target.animate({ transform: [ 'rotate(0)', 'rotate(90deg)' ] }, { duration: 1000, composite: 'add' }); In the example above, the scale animation would not yet have been reduced to a single interpolated value, so the DCHECK for is_single_ would fail. This CL fixes the logic to perform an interpolation in that case. Bug: 979952 Change-Id: I36a3221c55aa3d98281a21a4ac93d95d61c5a1ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1750200 Reviewed-by: Kevin Ellis <kevers@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#686789}
- Loading branch information