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 2509783002: Don't reset scroll position of contents on every ScrollView layout. (Closed)

Created:
4 years, 1 month ago by Evan Stade
Modified:
4 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't reset scroll position of contents on every ScrollView layout. Also do a little cleanup in ash scrollview related code. BUG=664930 Committed: https://crrev.com/210e0fa83113f83d29ac3c1203c2047e905601e9 Cr-Commit-Position: refs/heads/master@{#432749}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add test #

Patch Set 3 : make test work with scrolling by layer (I think) --- i.e. fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -9 lines) Patch
M ash/common/system/chromeos/bluetooth/tray_bluetooth.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray/fixed_sized_scroll_view.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/tray_details_view.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/scroll_view.cc View 1 3 chunks +5 lines, -6 lines 0 comments Download
M ui/views/controls/scroll_view_unittest.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
Evan Stade
4 years, 1 month ago (2016-11-16 19:26:45 UTC) #2
Evan Stade
p.s., I audited the task manager, the collected cookies view, and the bookmark manager, all ...
4 years, 1 month ago (2016-11-16 19:42:00 UTC) #5
sky
This looks fine. How about some test coverage? https://codereview.chromium.org/2509783002/diff/1/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2509783002/diff/1/ui/views/controls/scroll_view.cc#newcode316 ui/views/controls/scroll_view.cc:316: contents()->SetSize(gfx::Size(content_width, ...
4 years, 1 month ago (2016-11-16 20:12:57 UTC) #6
Evan Stade
test added
4 years, 1 month ago (2016-11-17 01:13:41 UTC) #9
Evan Stade
https://codereview.chromium.org/2509783002/diff/1/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2509783002/diff/1/ui/views/controls/scroll_view.cc#newcode316 ui/views/controls/scroll_view.cc:316: contents()->SetSize(gfx::Size(content_width, content_height)); On 2016/11/16 20:12:57, sky wrote: > It ...
4 years, 1 month ago (2016-11-17 01:14:01 UTC) #10
sky
Thanks! LGTM
4 years, 1 month ago (2016-11-17 01:32:21 UTC) #13
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/2509783002/20001
4 years, 1 month ago (2016-11-17 01:36:48 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/337220)
4 years, 1 month ago (2016-11-17 02:04:55 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/2509783002/40001
4 years, 1 month ago (2016-11-17 02:58:07 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-17 04:59:35 UTC) #22
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/210e0fa83113f83d29ac3c1203c2047e905601e9 Cr-Commit-Position: refs/heads/master@{#432749}
4 years, 1 month ago (2016-11-17 05:01:35 UTC) #24
msramek
4 years, 1 month ago (2016-11-17 09:19:30 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2509243002/ by msramek@chromium.org.

The reason for reverting is: This change likely breaks
NativeWidgetMacTest.WindowModalSheet test on Mac.

https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%2....

Powered by Google App Engine
This is Rietveld 408576698