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

Issue 2393213002: cc: Update scroll offset before property tree scrolling and animation. (Closed)

Created:
4 years, 2 months ago by sunxd
Modified:
4 years, 2 months ago
Reviewers:
bokan, ajuma, Xianzhu
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Update scroll offset before property tree scrolling and animation. In LayerTreeHostInProcess::FinishCommitOnImplThread, scroll offset in scroll tree was updated after updating scrolling and animation. Previously we actively update scroll offset in transform tree when we later pushing scroll offset map from main to impl. So transform node's scroll offset is always up-to-date. However in LayoutTests, we sometimes do not create pending tree. When pushing directly from main to active, we fail to detect change if the following criteria are met: 1) current_scroll_offset != new_scroll_offset; 2) new_scroll_offset.pending_value == new_scroll_offset.active_value. This results in not updating the inner viewport scroll layer when we use the same renderer and reset page scale factor. BUG=648785 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/41781b5c4d26bc86779212a9dea21e36d0566622 Cr-Commit-Position: refs/heads/master@{#425353}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Update scroll offset before updating property tree scrolling and animation. #

Total comments: 1

Patch Set 3 : Rewrite unit test #

Total comments: 2

Patch Set 4 : Enable the layout test. #

Patch Set 5 : Nit change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -9 lines) Patch
M cc/trees/layer_tree_host_in_process.cc View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 2 chunks +68 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
sunxd
PTAL. Do we want a test case for this?
4 years, 2 months ago (2016-10-05 15:51:19 UTC) #4
ajuma
On 2016/10/05 15:51:19, sunxd wrote: > PTAL. > > Do we want a test case ...
4 years, 2 months ago (2016-10-05 17:19:21 UTC) #5
sunxd
https://codereview.chromium.org/2393213002/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2393213002/diff/1/cc/trees/property_tree.cc#newcode1596 cc/trees/property_tree.cc:1596: new_scroll_offset_map->at(key)->Current(property_trees()->is_active); On 2016/10/05 17:19:21, ajuma wrote: > I wonder ...
4 years, 2 months ago (2016-10-05 18:48:27 UTC) #6
ajuma
https://codereview.chromium.org/2393213002/diff/1/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/2393213002/diff/1/cc/trees/property_tree.cc#newcode1596 cc/trees/property_tree.cc:1596: new_scroll_offset_map->at(key)->Current(property_trees()->is_active); On 2016/10/05 18:48:26, sunxd wrote: > On 2016/10/05 ...
4 years, 2 months ago (2016-10-05 19:16:05 UTC) #7
Xianzhu
Thanks for the fix. Please also enable paint/invalidation/fixed-right-bottom-in-page-scale.html.
4 years, 2 months ago (2016-10-05 19:18:26 UTC) #8
sunxd
I digged further and found that the root cause is the order of updating scroll ...
4 years, 2 months ago (2016-10-07 16:35:17 UTC) #10
ajuma
https://codereview.chromium.org/2393213002/diff/20001/cc/trees/layer_tree_host_in_process.cc File cc/trees/layer_tree_host_in_process.cc (right): https://codereview.chromium.org/2393213002/diff/20001/cc/trees/layer_tree_host_in_process.cc#newcode430 cc/trees/layer_tree_host_in_process.cc:430: !task_runner_provider_->ImplThreadTaskRunner()); Instead of calling this directly from your test, ...
4 years, 2 months ago (2016-10-07 18:38:30 UTC) #11
sunxd
Rewrite cc unit test.
4 years, 2 months ago (2016-10-12 14:33:02 UTC) #14
sunxd
PTAL
4 years, 2 months ago (2016-10-12 15:00:02 UTC) #15
ajuma
Thanks, lgtm https://codereview.chromium.org/2393213002/diff/40001/cc/trees/layer_tree_host_unittest_scroll.cc File cc/trees/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/2393213002/diff/40001/cc/trees/layer_tree_host_unittest_scroll.cc#newcode1997 cc/trees/layer_tree_host_unittest_scroll.cc:1997: if (!layer_tree_host()->SourceFrameNumber()) { nit: I think it's ...
4 years, 2 months ago (2016-10-12 15:03:23 UTC) #18
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/2393213002/70001
4 years, 2 months ago (2016-10-12 15:15:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/314630)
4 years, 2 months ago (2016-10-12 17:31:02 UTC) #23
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/2393213002/70001
4 years, 2 months ago (2016-10-14 15:10:48 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 2 months ago (2016-10-14 16:41:51 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 16:44:16 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/41781b5c4d26bc86779212a9dea21e36d0566622
Cr-Commit-Position: refs/heads/master@{#425353}

Powered by Google App Engine
This is Rietveld 408576698