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

Issue 2730343003: Fix overflow:overlay scrollbar width for paint. (Closed)

Created:
3 years, 9 months ago by szager1
Modified:
3 years, 9 months ago
Reviewers:
pdr., skobes
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix overflow:overlay scrollbar width for paint. This CL went too far: https://codereview.chromium.org/2725763002 Some callers to verticalScrollbarWidth -- in particular, the paint code -- need the old behavior, where overflow:overlay scrollbars are subtracted from the overflow clip rect. BUG=697751 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2730343003 Cr-Commit-Position: refs/heads/master@{#457251} Committed: https://chromium.googlesource.com/chromium/src/+/7ab46eae8507137607e258543118ef8fb04984de

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add OverlayScrollbarClipBehavior value #

Total comments: 2

Patch Set 3 : Fix logic #

Total comments: 2

Patch Set 4 : logic fix #

Total comments: 2

Patch Set 5 : comment #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -53 lines) Patch
M third_party/WebKit/LayoutTests/platform/linux/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/prefer_compositing_to_lcd_text/compositing/overflow/overflow-overlay-with-touch-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/api/LayoutBoxItem.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ClipRectsCache.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 3 chunks +24 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollTypes.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 56 (25 generated)
szager1
3 years, 9 months ago (2017-03-07 16:37:04 UTC) #8
skobes
https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode507 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:507: pixelSnappedIntRect(box().overflowClipRect(box().location())).size(); Could we add a value to the OverlayScrollbarClipBehavior ...
3 years, 9 months ago (2017-03-07 16:42:47 UTC) #9
szager1
https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode507 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:507: pixelSnappedIntRect(box().overflowClipRect(box().location())).size(); On 2017/03/07 16:42:47, skobes wrote: > Could we ...
3 years, 9 months ago (2017-03-07 19:01:31 UTC) #10
skobes
https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode507 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:507: pixelSnappedIntRect(box().overflowClipRect(box().location())).size(); On 2017/03/07 19:01:31, szager1 wrote: > Yeah, that ...
3 years, 9 months ago (2017-03-07 19:09:12 UTC) #11
szager1
On 2017/03/07 19:09:12, skobes wrote: > https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp > File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): > > https://codereview.chromium.org/2730343003/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode507 > ...
3 years, 9 months ago (2017-03-07 19:20:08 UTC) #12
skobes
https://codereview.chromium.org/2730343003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1308 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1308: (overlayScrollbarClipBehavior == IgnorePlatformOverlayScrollbarSize || Don't you need to check ...
3 years, 9 months ago (2017-03-07 19:28:07 UTC) #15
szager1
https://codereview.chromium.org/2730343003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1308 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1308: (overlayScrollbarClipBehavior == IgnorePlatformOverlayScrollbarSize || On 2017/03/07 19:28:07, skobes wrote: ...
3 years, 9 months ago (2017-03-07 19:44:38 UTC) #16
skobes
https://codereview.chromium.org/2730343003/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1327 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1327: (overlayScrollbarClipBehavior == IgnorePlatformOverlayScrollbarSize || same fix here (|| IgnorePlatformAndCSSOverlayScrollbarSize)
3 years, 9 months ago (2017-03-07 19:47:18 UTC) #17
szager1
https://codereview.chromium.org/2730343003/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/40001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1327 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1327: (overlayScrollbarClipBehavior == IgnorePlatformOverlayScrollbarSize || On 2017/03/07 19:47:18, skobes wrote: ...
3 years, 9 months ago (2017-03-07 20:07:52 UTC) #19
skobes
lgtm :)
3 years, 9 months ago (2017-03-07 20:13:24 UTC) #21
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/2730343003/60001
3 years, 9 months ago (2017-03-08 01:20:02 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/380465)
3 years, 9 months ago (2017-03-08 01:32:03 UTC) #27
szager1
+pdr for platform/OWNERS
3 years, 9 months ago (2017-03-08 20:19:03 UTC) #29
pdr.
https://codereview.chromium.org/2730343003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode509 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:509: IgnorePlatformAndCSSOverlayScrollbarSize)) Is this the only callsite using IgnorePlatformAndCSSOverlayScrollbarSize? The ...
3 years, 9 months ago (2017-03-08 20:33:20 UTC) #30
szager1
https://codereview.chromium.org/2730343003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2730343003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode509 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:509: IgnorePlatformAndCSSOverlayScrollbarSize)) On 2017/03/08 20:33:20, pdr. wrote: > Is this ...
3 years, 9 months ago (2017-03-08 20:43:09 UTC) #31
szager1
On 2017/03/08 20:43:09, szager1 wrote: > https://codereview.chromium.org/2730343003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp > File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): > > https://codereview.chromium.org/2730343003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode509 > ...
3 years, 9 months ago (2017-03-08 20:44:50 UTC) #32
skobes
On 2017/03/08 20:33:20, pdr. wrote: > Is this the only callsite using IgnorePlatformAndCSSOverlayScrollbarSize? The > ...
3 years, 9 months ago (2017-03-08 21:24:11 UTC) #33
szager1
On 2017/03/08 21:24:11, skobes wrote: > Another option would be for overflowClipRect to take a ...
3 years, 9 months ago (2017-03-08 21:53:21 UTC) #34
skobes
On 2017/03/08 21:53:21, szager1 wrote: > On 2017/03/08 21:24:11, skobes wrote: > > > Another ...
3 years, 9 months ago (2017-03-08 22:06:39 UTC) #35
pdr.
On 2017/03/08 at 21:53:21, szager wrote: > On 2017/03/08 21:24:11, skobes wrote: > > > ...
3 years, 9 months ago (2017-03-08 22:08:56 UTC) #36
szager1
On 2017/03/08 22:08:56, pdr. wrote: > On 2017/03/08 at 21:53:21, szager wrote: > > On ...
3 years, 9 months ago (2017-03-08 22:21:56 UTC) #37
szager1
On 2017/03/08 22:21:56, szager1 wrote: > On 2017/03/08 22:08:56, pdr. wrote: > > On 2017/03/08 ...
3 years, 9 months ago (2017-03-08 22:35:12 UTC) #38
pdr.
On 2017/03/08 at 22:35:12, szager wrote: > On 2017/03/08 22:21:56, szager1 wrote: > > On ...
3 years, 9 months ago (2017-03-08 23:05:49 UTC) #39
szager1
On 2017/03/08 23:05:49, pdr. wrote: > > Ahh... The scrollbars on Android/OSX are called "overlay" ...
3 years, 9 months ago (2017-03-08 23:11:01 UTC) #40
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/2730343003/80001
3 years, 9 months ago (2017-03-08 23:15:14 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/397381)
3 years, 9 months ago (2017-03-09 00:54:52 UTC) #45
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/2730343003/80001
3 years, 9 months ago (2017-03-09 01:03:55 UTC) #47
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/platform/scroll/ScrollableArea.h: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-09 03:07:39 UTC) #49
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/2730343003/100001
3 years, 9 months ago (2017-03-15 21:23:15 UTC) #52
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/7ab46eae8507137607e258543118ef8fb04984de
3 years, 9 months ago (2017-03-15 23:05:37 UTC) #55
tzik
3 years, 9 months ago (2017-03-16 02:27:56 UTC) #56
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2749863006/ by tzik@chromium.org.

The reason for reverting is: A layout test gets red after this CL due to the
mismatched test expectation.

The error log is:
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.11%20%28...
fast/overflow/scroll-nested-positioned-layer-in-overflow.html
.

Powered by Google App Engine
This is Rietveld 408576698