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

Issue 1021823006: Fix scroll position adjustment for fixed-position layers (Closed)

Created:
5 years, 9 months ago by Ian Vollick
Modified:
5 years, 8 months ago
Reviewers:
ajuma
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

Fix scroll position adjustment for fixed-position layers blink is currently using ScrollCompensationAdjustment to store the fractional bit of the scroll offset in cc. This CL incorporates that value into property tree construction. This adjustment only needs to be done on the main thread since the fixed-pos layers will stay put by virtue of their transform parent on the impl thread, so only the property tree builder required updating. BUG=470246 Committed: https://crrev.com/f6281c495acf0665126837bfead564b976cdefde Cr-Commit-Position: refs/heads/master@{#322879}

Patch Set 1 #

Patch Set 2 : added a unit test #

Patch Set 3 : Accumulate rather than walk. #

Patch Set 4 : removed debug code. #

Total comments: 6

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -23 lines) Patch
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 1 chunk +12 lines, -10 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 chunks +23 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Ian Vollick
5 years, 9 months ago (2015-03-26 17:40:52 UTC) #2
ajuma
https://codereview.chromium.org/1021823006/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1021823006/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode8969 cc/trees/layer_tree_host_common_unittest.cc:8969: scroller->SetScrollCompensationAdjustment(gfx::Vector2dF(0.0, -0.5f)); Does blink usually send negative values for ...
5 years, 9 months ago (2015-03-26 18:03:25 UTC) #3
Ian Vollick
https://codereview.chromium.org/1021823006/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1021823006/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode8969 cc/trees/layer_tree_host_common_unittest.cc:8969: scroller->SetScrollCompensationAdjustment(gfx::Vector2dF(0.0, -0.5f)); On 2015/03/26 18:03:25, ajuma wrote: > Does ...
5 years, 8 months ago (2015-03-30 17:51:25 UTC) #4
ajuma
lgtm, thanks for the explanations! https://codereview.chromium.org/1021823006/diff/100001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1021823006/diff/100001/cc/trees/layer_tree_host_common_unittest.cc#newcode8969 cc/trees/layer_tree_host_common_unittest.cc:8969: scroller->SetScrollCompensationAdjustment(gfx::Vector2dF(0.3, 0.7f)); 0.3f
5 years, 8 months ago (2015-03-30 19:08:52 UTC) #5
Ian Vollick
https://codereview.chromium.org/1021823006/diff/100001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1021823006/diff/100001/cc/trees/layer_tree_host_common_unittest.cc#newcode8969 cc/trees/layer_tree_host_common_unittest.cc:8969: scroller->SetScrollCompensationAdjustment(gfx::Vector2dF(0.3, 0.7f)); On 2015/03/30 19:08:52, ajuma wrote: > 0.3f ...
5 years, 8 months ago (2015-03-30 19:38:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1021823006/120001
5 years, 8 months ago (2015-03-30 19:39:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1021823006/140001
5 years, 8 months ago (2015-03-30 20:51:53 UTC) #13
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 8 months ago (2015-03-30 21:44:49 UTC) #14
commit-bot: I haz the power
5 years, 8 months ago (2015-03-30 21:45:48 UTC) #15
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f6281c495acf0665126837bfead564b976cdefde
Cr-Commit-Position: refs/heads/master@{#322879}

Powered by Google App Engine
This is Rietveld 408576698