forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Make ScrollOffsetAnimationCurve::UpdateTarget better handle large…
… velocity When ScrollOffsetAnimationCurve::UpdateTarget computes a new initial velocity, it doesn't address the possibility that this velocity will be large enough to trigger Inf or NaN when used elsewhere. However, given infinite precision math, increasing the velocity above 1000 has little effect on the cubic bezier curve used for the animation. This CL makes ScrollOffsetAnimationCurve no longer perform computations using large velocities; instead, we set the parameters of the cubic bezier curver directly to the values they approach as velocity approaches infinity. BUG=507252 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1215713017 Cr-Commit-Position: refs/heads/master@{#337668}
- Loading branch information
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters