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

Issue 1308053003: Replace pinch scrollbars with regular scrollbars. (Closed)

Created:
5 years, 4 months ago by aelias_OOO_until_Jul13
Modified:
5 years, 3 months ago
Reviewers:
skobes, Rick Byers
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-rendering, bokan, dshwang, eae+blinkwatch, enne (OOO), jchaffraix+rendering, kenneth.christiansen, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Replace pinch scrollbars with regular scrollbars. This patch makes the visual-viewport-managed scrollbars exclusive to Android and improves normal scrollbars to be usable during pinch as follows: 1. Attach the scrollbar layers to the visual viewport, so they're always onscreen as you zoom in (as already shipped on Mac). 2. Set the container layer to the inner clip layer, so that the size and position of the thumb reflects the sum of the two viewports, instead of just the layout viewport. Note that result of these changes is visually indistiguishable at minimum page scale. It only improves the behavior when zoomed in. BUG=523056 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201285

Patch Set 1 #

Patch Set 2 : fix comment #

Total comments: 5

Patch Set 3 : Code review comments #

Patch Set 4 : Fix layout tests and restore Android to VisualViewport #

Patch Set 5 : Rebaseline #

Patch Set 6 : Attempt to fix Mac layout test failures #

Patch Set 7 : Add Mac rebaselines #

Patch Set 8 : Fix webkit_unit_tests #

Total comments: 2

Patch Set 9 : Show scrollbar in devtools #

Patch Set 10 : Rebase #

Patch Set 11 : Reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -44 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 3 chunks +14 lines, -3 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position-composited-page-scale.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position-composited-page-scale-down.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position-iframe-composited-page-scale.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position-iframe-composited-page-scale-down.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position-transform-composited-page-scale.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/fixed-position-transform-composited-page-scale-down.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/geometry/vertical-scroll-composited.html View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M LayoutTests/compositing/overflow/fixed-position-ancestor-clip.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/compositing/scaling/tiled-layer-recursion.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/repaint/absolute-position-changed.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/scrolling/overflow-clip-with-page-scale.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/frame/VisualViewport.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 6 7 8 7 chunks +34 lines, -25 lines 0 comments Download
M Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerScrollableArea.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeAndroid.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeOverlay.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeOverlay.cpp View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/DevToolsEmulator.cpp View 1 2 3 4 5 6 7 8 5 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
aelias_OOO_until_Jul13
Hi skobes@, PTAL.
5 years, 4 months ago (2015-08-25 00:09:58 UTC) #2
skobes
https://codereview.chromium.org/1308053003/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1308053003/diff/20001/Source/core/frame/FrameView.cpp#newcode679 Source/core/frame/FrameView.cpp:679: GraphicsLayer* FrameView::layerForScrollbarContainer() const Do we need a similar override ...
5 years, 4 months ago (2015-08-25 00:19:01 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/1308053003/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1308053003/diff/20001/Source/core/frame/FrameView.cpp#newcode679 Source/core/frame/FrameView.cpp:679: GraphicsLayer* FrameView::layerForScrollbarContainer() const On 2015/08/25 at 00:19:01, skobes wrote: ...
5 years, 4 months ago (2015-08-25 02:50:27 UTC) #4
skobes
lgtm
5 years, 4 months ago (2015-08-25 03:28:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308053003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308053003/40001
5 years, 4 months ago (2015-08-25 03:28:13 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/92201)
5 years, 4 months ago (2015-08-25 03:36:29 UTC) #9
aelias_OOO_until_Jul13
Adding rbyers@ for OWNERS for small ScrollableArea API change. https://codereview.chromium.org/1308053003/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1308053003/diff/20001/Source/core/frame/FrameView.cpp#newcode3247 Source/core/frame/FrameView.cpp:3247: ...
5 years, 3 months ago (2015-08-26 04:47:48 UTC) #11
Rick Byers
On 2015/08/26 04:47:48, aelias wrote: > Adding rbyers@ for OWNERS for small ScrollableArea API change. ...
5 years, 3 months ago (2015-08-26 14:37:52 UTC) #12
skobes
lgtm I assume you've checked that devtools mobile emulation shows the Android-only scrollbars correctly? https://codereview.chromium.org/1308053003/diff/140001/Source/core/frame/FrameView.h ...
5 years, 3 months ago (2015-08-26 18:21:32 UTC) #13
aelias_OOO_until_Jul13
I needed to make a few more changes in theming and an extra attachment call ...
5 years, 3 months ago (2015-08-27 03:11:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308053003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308053003/180001
5 years, 3 months ago (2015-08-27 03:11:46 UTC) #17
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201285
5 years, 3 months ago (2015-08-27 04:29:00 UTC) #18
aelias_OOO_until_Jul13
5 years, 3 months ago (2015-08-27 20:08:39 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1318603005/ by aelias@chromium.org.

The reason for reverting is: Introduced ChromeDriver devtools mobile emulation
crash https://code.google.com/p/chromedriver/issues/detail?id=1205.

Powered by Google App Engine
This is Rietveld 408576698