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

Issue 1980103002: Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. (Closed)

Created:
4 years, 7 months ago by szager1
Modified:
4 years, 6 months ago
Reviewers:
tkent, cbiesinger, skobes, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. Prior to this change, auto vertical scrollbars could intrude into the content box and overlap content on the right edge. Discussion of this change at: https://codereview.chromium.org/1930183002/#msg12 BUG=600036 R=skobes@chromium.org,eae@chromium.org Committed: https://crrev.com/c9b3e99e2a71f7bcc4d9652916347782ff616e0d Cr-Commit-Position: refs/heads/master@{#397112}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added test #

Total comments: 2

Patch Set 3 : Get rid of intrinsicScrollbarLogicalWidth #

Patch Set 4 : Don't alter scrollbars during relayout. #

Patch Set 5 : refactor use of m_inOverflowRelayout #

Patch Set 6 : rebase #

Total comments: 1

Patch Set 7 : loop through layoutBlockFlow if widths are dirty #

Patch Set 8 : Another test #

Patch Set 9 : test fixes #

Patch Set 10 : Restore list box height calculation, fix scrollbar width factor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -58 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/flexbox/flexbox-height-with-overflow-auto.html View 3 chunks +6 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content.html View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-fit-content-expected.txt View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html View 1 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 4 chunks +35 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/web/resources/listPicker.js View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (20 generated)
szager1
4 years, 7 months ago (2016-05-16 18:40:26 UTC) #1
eae
This is an exciting change, looks good to me but I'd like skobes to review ...
4 years, 7 months ago (2016-05-16 18:45:15 UTC) #2
skobes
https://codereview.chromium.org/1980103002/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1980103002/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode688 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:688: box().updateLogicalWidth(); Won't this (updateLogicalWidth) happen during layout anyway? https://codereview.chromium.org/1980103002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp ...
4 years, 7 months ago (2016-05-16 20:55:53 UTC) #3
skobes
Also, aren't we creating a circular dependency between preferred widths and layout? Auto scrollbar existence ...
4 years, 7 months ago (2016-05-16 20:59:40 UTC) #4
szager1
On 2016/05/16 20:59:40, skobes wrote: > Also, aren't we creating a circular dependency between preferred ...
4 years, 7 months ago (2016-05-16 22:30:15 UTC) #5
skobes
On 2016/05/16 22:30:15, szager1 wrote: > If you look at the changes to LayoutFlexibleBox.cpp in ...
4 years, 7 months ago (2016-05-16 23:23:48 UTC) #6
szager1
On 2016/05/16 23:23:48, skobes wrote: > On 2016/05/16 22:30:15, szager1 wrote: > > If you ...
4 years, 7 months ago (2016-05-16 23:57:10 UTC) #7
skobes
On 2016/05/16 23:23:48, skobes wrote: > The description says "auto vertical scrollbars could intrude into ...
4 years, 7 months ago (2016-05-16 23:57:42 UTC) #8
szager1
On 2016/05/16 23:57:42, skobes wrote: > On 2016/05/16 23:23:48, skobes wrote: > > The description ...
4 years, 7 months ago (2016-05-17 00:06:44 UTC) #9
szager1
On 2016/05/17 00:06:44, szager1 wrote: > On 2016/05/16 23:57:42, skobes wrote: > > On 2016/05/16 ...
4 years, 7 months ago (2016-05-17 00:09:57 UTC) #10
skobes
On 2016/05/17 00:09:57, szager1 wrote: > And thanks to eae, I can report that Edge ...
4 years, 7 months ago (2016-05-17 00:14:51 UTC) #11
skobes
https://codereview.chromium.org/1980103002/diff/20001/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html File third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html (right): https://codereview.chromium.org/1980103002/diff/20001/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html#newcode24 third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html:24: if (container.clientWidth == 0) Also, what should happen if ...
4 years, 7 months ago (2016-05-17 00:18:40 UTC) #12
szager1
On 2016/05/17 00:18:40, skobes wrote: > https://codereview.chromium.org/1980103002/diff/20001/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html > File > third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html > (right): > > ...
4 years, 7 months ago (2016-05-17 07:18:05 UTC) #13
szager1
On 2016/05/17 00:14:51, skobes wrote: > On 2016/05/17 00:09:57, szager1 wrote: > > And thanks ...
4 years, 7 months ago (2016-05-17 07:18:56 UTC) #14
szager1
Also, just for fun, here's another goofy example: https://jsbin.com/vaniwuhiri/edit?html,js,output Even on first layout, it has ...
4 years, 7 months ago (2016-05-17 07:25:45 UTC) #15
skobes
ok, lgtm :)
4 years, 7 months ago (2016-05-17 17:23:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980103002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980103002/40001
4 years, 7 months ago (2016-05-17 18:16:38 UTC) #18
szager1
+tkent for Source/web/resources/OWNERS
4 years, 7 months ago (2016-05-17 18:20:17 UTC) #22
tkent
lgtm
4 years, 7 months ago (2016-05-17 22:59:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980103002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980103002/60001
4 years, 7 months ago (2016-05-17 23:05:47 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980103002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980103002/80001
4 years, 7 months ago (2016-05-17 23:18:01 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/229402)
4 years, 7 months ago (2016-05-17 23:33:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980103002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980103002/80001
4 years, 7 months ago (2016-05-18 00:02:18 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/229497)
4 years, 7 months ago (2016-05-18 01:34:03 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980103002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980103002/100001
4 years, 7 months ago (2016-05-23 21:30:30 UTC) #39
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/188355)
4 years, 7 months ago (2016-05-23 21:37:30 UTC) #41
cbiesinger
I'm late to the party, but I have a couple questions: How do you handle ...
4 years, 7 months ago (2016-05-23 21:46:02 UTC) #42
cbiesinger
https://codereview.chromium.org/1980103002/diff/100001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1980103002/diff/100001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode693 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:693: box().updateLogicalWidth(); I think skobes asked this too -- why ...
4 years, 7 months ago (2016-05-23 21:46:12 UTC) #44
szager1
On 2016/05/23 21:46:02, cbiesinger wrote: > I'm late to the party, but I have a ...
4 years, 7 months ago (2016-05-23 22:06:06 UTC) #45
szager1
https://codereview.chromium.org/1980103002/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1980103002/diff/1/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode688 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:688: box().updateLogicalWidth(); On 2016/05/16 20:55:53, skobes wrote: > Won't this ...
4 years, 7 months ago (2016-05-23 22:17:32 UTC) #46
cbiesinger
But is the float sized wide enough to contain the scrollbar? Ie. Does the black ...
4 years, 7 months ago (2016-05-23 22:49:45 UTC) #47
cbiesinger
But is the float sized wide enough to contain the scrollbar? Ie. Does the black ...
4 years, 7 months ago (2016-05-23 22:49:46 UTC) #48
szager1
PTAL This should now cover the case of a parent block that sizes to fit ...
4 years, 6 months ago (2016-05-27 18:15:28 UTC) #49
skobes
lgtm
4 years, 6 months ago (2016-05-27 19:10:12 UTC) #50
cbiesinger
lgtm, thanks for persevering with this patch!
4 years, 6 months ago (2016-05-27 20:36:42 UTC) #51
eae
This is awesome, LGTM++
4 years, 6 months ago (2016-05-27 20:45:17 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980103002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980103002/180001
4 years, 6 months ago (2016-06-01 10:55:30 UTC) #55
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-01 12:34:01 UTC) #57
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 12:35:17 UTC) #59
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c9b3e99e2a71f7bcc4d9652916347782ff616e0d
Cr-Commit-Position: refs/heads/master@{#397112}

Powered by Google App Engine
This is Rietveld 408576698