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.
Undo scroll snaps in to_parent when NeedsSourceToParentUpdate.
When we scroll on impl thread, we do scroll snapping in transform trees if the transform node has a non-integer screen space transform. However, the main thread logic also do snapping. When updating source to parent transforms on main thread, it is possible that the scroll snaps are used to compute the to_parent transform. It becomes a problem if the node is created due to a fixed pos layer, the snapping will add a small translation to the to_parent transform and result in the unstable position. This CL undoes the snapping in this case. It is notable that scroll_parent might also be influenced by this change. BUG=584598 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2183923002 Cr-Commit-Position: refs/heads/master@{#408699}
- Loading branch information
sunxd
authored and
Commit bot
committed
Jul 29, 2016
1 parent
3463467
commit 8a9a609
Showing
4 changed files
with
142 additions
and
7 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
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