DescriptionAura overlay scrollbars shouldn't invalidate thumb on scroll or enabled state.
We still invalidate the scroll controls on ScrollableArea, which is used if the
scrollbars are painted into the ScrollableArea itself, rather than composited
layers.
The thumbNeedsRepaint property on Scrollbar is used to repaint a scrollbar thumb
that's actually changed appearance. This isn't actually needed when the thumb
simply changes scroll offset. Nor is it needed when the enabled/disabled state
changes since the compositor knows how to hide them itself. Thus, a composited
scrollbar now needs to repaint only when the hovered or pressed state changes
or if there's a geometry change.
BUG=669670
Committed: https://crrev.com/65f5be3dadd8a0a752effd7073a12f9ecdb1c472
Cr-Commit-Position: refs/heads/master@{#440450}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Forgot test file #
Total comments: 2
Patch Set 4 : Nit #
Total comments: 4
Patch Set 5 : Fix BUILD.gn, make MockScrollableArea constructor protected #
Messages
Total messages: 26 (17 generated)
|