Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Issue 2183923002: Undo scroll snaps in to_parent when NeedsSourceToParentUpdate. (Closed)

Created:
4 years, 4 months ago by sunxd
Modified:
4 years, 4 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/8a9a60982e6cf62b6fbe45326141fda8263d2dfe Cr-Commit-Position: refs/heads/master@{#408699}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Unit tests #

Patch Set 3 : Remove scroll snap in BuildPropertyTrees #

Patch Set 4 : Remove code no longer in use #

Total comments: 4

Patch Set 5 : Nit change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -7 lines) Patch
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 4 chunks +0 lines, -7 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 5 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (27 generated)
sunxd
Hi Ali, I want to make sure this is the fix we want (like the ...
4 years, 4 months ago (2016-07-26 19:04:47 UTC) #6
sunxd
Hi Ali, I want to make sure this is the fix we want (like the ...
4 years, 4 months ago (2016-07-26 19:04:48 UTC) #7
ajuma
https://codereview.chromium.org/2183923002/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2183923002/diff/1/cc/trees/property_tree.cc#newcode338 cc/trees/property_tree.cc:338: unsnapping.Subtract(parent_node->scroll_snap); This is the right general approach, but I ...
4 years, 4 months ago (2016-07-26 19:34:41 UTC) #8
sunxd
4 years, 4 months ago (2016-07-29 15:39:10 UTC) #25
sunxd
Sorry I forgot to remove unnecessary code.
4 years, 4 months ago (2016-07-29 15:42:02 UTC) #26
ajuma
lgtm https://codereview.chromium.org/2183923002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2183923002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode6894 cc/trees/layer_tree_host_common_unittest.cc:6894: EXPECT_EQ(expected_scroll_child_screen_space_transform, Nit: Use EXPECT_TRANSFORMATION_MATRIX_EQ to compare these transforms. ...
4 years, 4 months ago (2016-07-29 17:33:33 UTC) #29
sunxd
https://codereview.chromium.org/2183923002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2183923002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode6894 cc/trees/layer_tree_host_common_unittest.cc:6894: EXPECT_EQ(expected_scroll_child_screen_space_transform, On 2016/07/29 17:33:33, ajuma wrote: > Nit: Use ...
4 years, 4 months ago (2016-07-29 17:50:30 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2183923002/80001
4 years, 4 months ago (2016-07-29 17:50:56 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-29 18:47:17 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 18:49:34 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8a9a60982e6cf62b6fbe45326141fda8263d2dfe
Cr-Commit-Position: refs/heads/master@{#408699}

Powered by Google App Engine
This is Rietveld 408576698