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

Issue 1525803002: Make ScrollbarThemeAura selectively invalidate scrollbar parts. (Closed)

Created:
5 years ago by jbroman
Modified:
4 years, 11 months ago
Reviewers:
skobes, ccameron
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ScrollbarThemeAura selectively invalidate scrollbar parts. In particular: - when hovering or pressing the thumb, repaint only the thumb - when thumb position changes, repaint the track only if it changes (e.g. due to a button being disabled upon reaching the end) BUG=549277 Committed: https://crrev.com/0e8396ada46f085c23343450d850d81751053c94 Cr-Commit-Position: refs/heads/master@{#367082}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : have ScrollableArea force invalidation when the thumb moves, even if it didn't become invalid #

Patch Set 5 : #

Patch Set 6 : avoid extra mac invalidation, make forced invalidation in ScrollableArea conditional on scroll offs… #

Patch Set 7 : rebaseline expectations #

Patch Set 8 : unit tests for invalidation of scrollbar parts #

Total comments: 1

Patch Set 9 : remove TODO, per ccameron #

Total comments: 6

Patch Set 10 : comments per skobes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -94 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebScrollbarThemePainter.cpp View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 3 4 5 6 7 6 chunks +108 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.h View 1 2 3 4 5 6 7 8 9 5 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 5 chunks +18 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +100 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
jbroman
This makes ScrollbarThemeAura tell the Scrollbar and ScrollableArea when parts of the scrollbar need to ...
5 years ago (2015-12-22 20:32:37 UTC) #2
jbroman
Also: the rebaselines requested in TestExpectations are progressions in repaint tests, where a composited scrollbar ...
5 years ago (2015-12-22 20:33:08 UTC) #3
ccameron
Mac parts lgtm (though you can drop the TODO -- we don't plan "to do" ...
5 years ago (2015-12-23 01:20:37 UTC) #4
jbroman
On 2015/12/23 at 01:20:37, ccameron wrote: > Mac parts lgtm (though you can drop the ...
5 years ago (2015-12-23 16:10:53 UTC) #5
skobes
Have you tested custom scrollbars (which will still require invalidations)? https://codereview.chromium.org/1525803002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1525803002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2077 ...
4 years, 12 months ago (2015-12-28 17:48:39 UTC) #6
jbroman
On 2015/12/28 at 17:48:39, skobes wrote: > Have you tested custom scrollbars (which will still ...
4 years, 11 months ago (2015-12-29 16:45:14 UTC) #7
skobes
lgtm
4 years, 11 months ago (2015-12-29 16:47:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1525803002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1525803002/180001
4 years, 11 months ago (2015-12-29 16:51:52 UTC) #11
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2015-12-29 18:16:10 UTC) #12
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/0e8396ada46f085c23343450d850d81751053c94 Cr-Commit-Position: refs/heads/master@{#367082}
4 years, 11 months ago (2015-12-29 18:17:06 UTC) #14
jbroman
4 years, 11 months ago (2015-12-29 20:00:42 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1550983002/ by jbroman@chromium.org.

The reason for reverting is: Oilpan unit test failure:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac%20Oilpan/bu....

Powered by Google App Engine
This is Rietveld 408576698