Fix too small scale during animation without scale but with ancestor scale
Previously during a translation animation, as the animation didn't have scale, we would fallback to use the native scale. In cases that the animating element had a big accumulated scale from ancestors, the scale would be too small compared to the ideal scale. Another failure case was that when a big animation scale would cause the rasterized layer to be larger than the viewport, we would also fallback to use the native scale, which might be also too small if the layer had a big accumulated scale from ancestors. Now don't adjust scale for transform animation if the animation doesn't animate scale. And don't fallback to native scale when the scale is too big, but calculate a scale that just makes the rasterized layer not larger than the viewport. Bug: 1153428 Change-Id: I4a4f3133b01099752629f6710c8375a7b715ab0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566053Reviewed-by:vmpstr <vmpstr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#832491}
Showing
This diff is collapsed.
Please register or sign in to comment