|
[Reland] Implement overlay scrollbar fade out for non-composited scrollers.
In crrev.com/2442573002 and crrev.com/2453553003 I added fade out for Aura
overlay scrollbars. In this patch I add a simple instantly disappearing
fade-out for scrollers that aren't composited.
The changes in this patch are:
-Plumb through the fade out durations into Blink. Any time a ScrollableArea is
scrolled or resized we show the scrollbars and start a timer to make them
disappear. The scrollbars are marked as "hidden" and made disabled and invisible
to hit testing.
-Fixed hit testing for overlay scrollbars so we can't scroll by clicking on the
track (which isn't painted).
-Fixed two layout tests:
third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-hittest.html
overlay-scrollbar-mouse-capture.html
These tests turn on overlay scrollbars but try to scroll by clicking a
button/track which I fixed. The tests now drag the thumb instead.
-In crrev.com/2453553003 I added didChangeScrollbarsHidden to disable overlay
scrollbars so they're invisible to hit testing. It turns out Mac overlay
scrollbars already have this functionality in
ScrollableArea::scrollbarVisibilityChanged and
Scrollbar::shouldParticipateInHitTesting so I removed didChangeScrollbarsHidden
and used these. I also removed some redundancy in the Mac path so that Mac and
Aura overlays disable hit testing in the same way.
-Removed the static compile assert about ScrollableArea staying small. There's
no reason ScrollableArea is particularily special and this encourages
developers to duplicate functionality in the descendant classes.
BUG= 592098, 662402
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/4430234f2f5f52efe60ad2b8e6608112352259da
Committed: https://crrev.com/60d2bbbc8fa4cce01bbd90c97d3e989a47d6dedf
Committed: https://crrev.com/eb757fdbd63242a73f3074e4a50742d08d6ea488
Cr-Original-Original-Commit-Position: refs/heads/master@{#429616}
Cr-Original-Commit-Position: refs/heads/master@{#430065}
Cr-Commit-Position: refs/heads/master@{#431466}
Total comments: 24
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+330 lines, -139 lines) |
Patch |
|
M |
content/child/webthemeengine_impl_android.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/child/webthemeengine_impl_default.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/child/webthemeengine_impl_default.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/scrolling/scrollbar-tickmarks-hittest.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
D |
third_party/WebKit/LayoutTests/platform/mac/plugins/overlay-scrollbar-mouse-capture-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html
|
View
|
1
2
|
2 chunks |
+18 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture-expected.txt
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/frame/FrameView.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/frame/FrameView.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/frame/RootFrameViewport.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+13 lines, -18 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.cpp
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
7 chunks |
+17 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+56 lines, -18 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/Scrollbar.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
|
View
|
1
2
|
3 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarThemeClient.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
|
View
|
1
2
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+105 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebThemeEngine.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+13 lines, -2 lines |
0 comments
|
Download
|
Total messages: 93 (59 generated)
|