DescriptionDisable overlay scrollbars to hide them on non-Mac.
In https://codereview.chromium.org/2467693002/ I accidentally removed the code
that disabled/enabled scrollbars based on whether they're hidden. This was
because it caused an invalidation cycle on Mac but I had forgotten that the
reason for disabling scrollbars that are invisible is that painting code uses
this as a signal to "hide" the scrollbar.
This patch brings the code back but makes the behavior dependent on a flag in
ScrollbarTheme. This is needed since the signalling is flipped on Mac. On Mac,
painting code makes the scrollbars invisible which then sets the
scrollbarsHidden flag on the ScrollableArea. On Aura, a timer determines that
the scrollbars need to be hidden and disables them which causes an invalidation
and repaint.
BUG=307091
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/4337e5dded29ebb7ef9401cb55e4effcf4f73b69
Cr-Commit-Position: refs/heads/master@{#433300}
Patch Set 1 #Patch Set 2 : Forgot to git add test #Patch Set 3 : Fix tests #
Total comments: 7
Patch Set 4 : Addressed feedback #
Total comments: 2
Patch Set 5 : Rebase #Patch Set 6 : Renamed to shouldDisableInvisibleScrollbars #Dependent Patchsets: Messages
Total messages: 39 (24 generated)
|