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

Issue 1553003002: Fix Mac overlay scrollbars to show when programmatically scrolled. (Closed)

Created:
4 years, 11 months ago by bokan
Modified:
4 years, 9 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Mac overlay scrollbars to show when programmatically scrolled. This regressed after Blink r197500 since we now (correctly) cancel user scroll animations when starting a programmatic scroll. The problem is that ScrollAnimatorMac::cancelAnimations, which is part of the ScrollableArea interface, was cancelling the internal scrollbar painting animations and not the user scroll animation as expected. This patch replaces the paint cancelling code in cancelAnimations with _stopRun which stops the actual scroll instead. BUG=535684 Committed: https://crrev.com/bb01745001880da55a4e56416e35cc459204c042 Cr-Commit-Position: refs/heads/master@{#378488}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : ++tests #

Patch Set 4 : Add test expectation #

Total comments: 1

Patch Set 5 : Removed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -7 lines) Patch
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm View 1 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
bokan
pinkerton@: It looks like canceling the animation prevents the scrollbars from showing at all in ...
4 years, 11 months ago (2016-01-04 19:20:33 UTC) #5
bokan
pinkerton@: It looks like canceling the animation prevents the scrollbars from showing at all in ...
4 years, 11 months ago (2016-01-04 19:20:35 UTC) #6
pink (ping after 24hrs)
+elly who has been digging a lot into scrollbars lately
4 years, 11 months ago (2016-01-04 19:26:14 UTC) #8
bokan
friendly ping
4 years, 11 months ago (2016-01-08 00:39:51 UTC) #9
Elly Fong-Jones
lgtm
4 years, 11 months ago (2016-01-08 14:17:05 UTC) #10
bokan
+vollick@ For OWNER
4 years, 11 months ago (2016-01-08 16:40:19 UTC) #12
bokan
Re: why no test? It seems that layout tests run with overlay scrollbars turned off ...
4 years, 11 months ago (2016-01-09 18:10:52 UTC) #13
Ian Vollick
On 2016/01/09 18:10:52, bokan wrote: > Re: why no test? > > It seems that ...
4 years, 11 months ago (2016-01-11 15:33:46 UTC) #14
bokan
On 2016/01/11 15:33:46, vollick wrote: > On 2016/01/09 18:10:52, bokan wrote: > > Re: why ...
4 years, 11 months ago (2016-01-19 21:23:02 UTC) #15
Elly Fong-Jones
On 2016/01/19 21:23:02, bokan wrote: > On 2016/01/11 15:33:46, vollick wrote: > > On 2016/01/09 ...
4 years, 11 months ago (2016-01-21 18:54:09 UTC) #16
bokan
On 2016/01/21 18:54:09, Elly Jones wrote: > On 2016/01/19 21:23:02, bokan wrote: > > On ...
4 years, 11 months ago (2016-01-21 19:59:44 UTC) #17
bokan
Sorry for the delay, I had to do some side work to allow scroll animations ...
4 years, 10 months ago (2016-02-24 15:41:00 UTC) #18
bokan
vollick@: ping
4 years, 10 months ago (2016-02-25 15:53:00 UTC) #19
Ian Vollick
On 2016/02/24 15:41:00, bokan wrote: > Sorry for the delay, I had to do some ...
4 years, 10 months ago (2016-02-27 02:12:50 UTC) #20
bokan
On 2016/02/27 02:12:50, vollick wrote: > On 2016/02/24 15:41:00, bokan wrote: > > Sorry for ...
4 years, 9 months ago (2016-02-29 14:23:54 UTC) #21
Rick Byers
https://codereview.chromium.org/1553003002/diff/60001/third_party/WebKit/LayoutTests/compositing/scrollbars/mac-programmatic-scroll-shows-overlay-scrollbars.html File third_party/WebKit/LayoutTests/compositing/scrollbars/mac-programmatic-scroll-shows-overlay-scrollbars.html (right): https://codereview.chromium.org/1553003002/diff/60001/third_party/WebKit/LayoutTests/compositing/scrollbars/mac-programmatic-scroll-shows-overlay-scrollbars.html#newcode31 third_party/WebKit/LayoutTests/compositing/scrollbars/mac-programmatic-scroll-shows-overlay-scrollbars.html:31: // likely to cause some flakes on slow runs ...
4 years, 9 months ago (2016-02-29 19:06:33 UTC) #23
Rick Byers
On 2016/02/29 19:06:33, Rick Byers wrote: > https://codereview.chromium.org/1553003002/diff/60001/third_party/WebKit/LayoutTests/compositing/scrollbars/mac-programmatic-scroll-shows-overlay-scrollbars.html > File > third_party/WebKit/LayoutTests/compositing/scrollbars/mac-programmatic-scroll-shows-overlay-scrollbars.html > (right): > ...
4 years, 9 months ago (2016-02-29 19:08:31 UTC) #24
Ian Vollick
On 2016/02/29 19:08:31, Rick Byers wrote: > On 2016/02/29 19:06:33, Rick Byers wrote: > > ...
4 years, 9 months ago (2016-02-29 19:30:04 UTC) #25
bokan
Thanks for the guidance, that's what I was thinking as well. I'll land without tests.
4 years, 9 months ago (2016-03-01 17:31:22 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553003002/80001
4 years, 9 months ago (2016-03-01 17:32:03 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-01 18:34:28 UTC) #32
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 18:35:31 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bb01745001880da55a4e56416e35cc459204c042
Cr-Commit-Position: refs/heads/master@{#378488}

Powered by Google App Engine
This is Rietveld 408576698