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

Issue 2590163004: Aura overlay scrollbars shouldn't invalidate thumb on scroll or enabled state. (Closed)

Created:
4 years ago by bokan
Modified:
4 years ago
Reviewers:
skobes, jbroman
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aura 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -5 lines) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.h View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp View 1 2 3 1 chunk +127 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
bokan
4 years ago (2016-12-21 16:25:15 UTC) #11
skobes
lgtm w/ nit https://codereview.chromium.org/2590163004/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp (right): https://codereview.chromium.org/2590163004/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp#newcode79 third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp:79: // invalidated as it's state is ...
4 years ago (2016-12-21 18:04:07 UTC) #12
bokan
+jbroman@ for OWNER https://codereview.chromium.org/2590163004/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp (right): https://codereview.chromium.org/2590163004/diff/40001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp#newcode79 third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayTest.cpp:79: // invalidated as it's state is ...
4 years ago (2016-12-22 15:02:32 UTC) #14
bokan
+jbroman@ for OWNER
4 years ago (2016-12-22 15:02:32 UTC) #15
jbroman
lgtm with two comments https://codereview.chromium.org/2590163004/diff/60001/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/2590163004/diff/60001/third_party/WebKit/Source/platform/BUILD.gn#newcode1835 third_party/WebKit/Source/platform/BUILD.gn:1835: sources += [ "scroll/ScrollbarThemeOverlayTest.cpp" ] ...
4 years ago (2016-12-22 15:21:01 UTC) #17
bokan
https://codereview.chromium.org/2590163004/diff/60001/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/2590163004/diff/60001/third_party/WebKit/Source/platform/BUILD.gn#newcode1835 third_party/WebKit/Source/platform/BUILD.gn:1835: sources += [ "scroll/ScrollbarThemeOverlayTest.cpp" ] On 2016/12/22 15:21:00, jbroman ...
4 years ago (2016-12-22 16:10: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/2590163004/80001
4 years ago (2016-12-22 16:11:16 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-22 18:03:33 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-22 18:05:30 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/65f5be3dadd8a0a752effd7073a12f9ecdb1c472
Cr-Commit-Position: refs/heads/master@{#440450}

Powered by Google App Engine
This is Rietveld 408576698