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

Issue 535913002: Add scrollbar logical width while computing intrinsic logical width (Closed)

Created:
6 years, 3 months ago by Sunil Ratnu
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, jfernandez, leviw+renderwatch, pdr., Manuel Rego, rune+blink, svillar, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add scrollbar logical width while computing intrinsic logical width This CL does the following: 1. takes into account the intrinsic scrollbar logical width while computing min and max logical widths. 2. fixes the typo i.e. fixes "instrinsicScrollbarLogicalWidth" to "intrinsicScrollbarLogicalWidth" Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185999

Patch Set 1 #

Patch Set 2 : Adding Test case #

Total comments: 6

Patch Set 3 : Fix typo + Remove Scrollbar calculation from testcase #

Total comments: 5

Patch Set 4 : Remove std::max #

Patch Set 5 : Added test coverage for display:inline-grid #

Patch Set 6 : Use width: fit-content in test case #

Total comments: 2

Patch Set 7 : Remove opera prefix from test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -6 lines) Patch
A LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width-expected.txt View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBox.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderDeprecatedFlexibleBox.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 21 (3 generated)
Sunil Ratnu
I have also written a test case where grid SHOULD NOT add scrollbar width to ...
6 years, 3 months ago (2014-09-03 11:19:59 UTC) #2
Sunil Ratnu
Hi Julien, I've written the test case where we should take into account the scrollbar ...
6 years, 3 months ago (2014-09-05 13:45:05 UTC) #3
Julien - ping for review
https://codereview.chromium.org/535913002/diff/20001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html File LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html (right): https://codereview.chromium.org/535913002/diff/20001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html#newcode37 LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html:37: }); The scrollbar width is 16px so no need ...
6 years, 3 months ago (2014-09-09 14:39:40 UTC) #5
Sunil Ratnu
https://codereview.chromium.org/535913002/diff/20001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/535913002/diff/20001/Source/core/rendering/RenderGrid.cpp#newcode379 Source/core/rendering/RenderGrid.cpp:379: maxLogicalWidth = std::max(minLogicalWidth, maxLogicalWidth); On 2014/09/09 14:39:40, Julien Chaffraix ...
6 years, 3 months ago (2014-09-09 15:22:55 UTC) #6
Sunil Ratnu
Hi Julien, I've made the suggested changes. Only one thing remains whether to have "maxLogicalWidth ...
6 years, 3 months ago (2014-09-09 17:28:30 UTC) #7
Julien - ping for review
lgtm with the following changes https://codereview.chromium.org/535913002/diff/40001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html File LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html (right): https://codereview.chromium.org/535913002/diff/40001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html#newcode19 LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html:19: <div class='grid' style='top: 100px' ...
6 years, 3 months ago (2014-09-10 16:06:54 UTC) #8
Julien - ping for review
Another comment: The last sentence of your description is above 80 columns. We try to ...
6 years, 3 months ago (2014-09-10 16:08:44 UTC) #9
Sunil Ratnu
https://codereview.chromium.org/535913002/diff/40001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html File LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html (right): https://codereview.chromium.org/535913002/diff/40001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html#newcode19 LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html:19: <div class='grid' style='top: 100px' data-expected-width='115'> I think we need ...
6 years, 3 months ago (2014-09-11 10:59:44 UTC) #10
Sunil Ratnu
Hi Julien, It would be great if you could review the final patchset as after ...
6 years, 3 months ago (2014-09-12 00:39:20 UTC) #11
Sunil Ratnu
Hi Julien, i am back at office now, can you please review it now? Thanks!
6 years, 3 months ago (2014-09-18 03:03:31 UTC) #12
Sunil Ratnu
On 2014/09/18 03:03:31, Sunil Ratnu wrote: > Hi Julien, i am back at office now, ...
6 years, 3 months ago (2014-09-23 12:58:44 UTC) #13
Sunil Ratnu
On 2014/09/23 12:58:44, Sunil Ratnu wrote: > On 2014/09/18 03:03:31, Sunil Ratnu wrote: > > ...
6 years, 1 month ago (2014-11-06 05:33:09 UTC) #14
Julien - ping for review
lgtm. Sorry I didn't see your comments before now. You had an LGTM so you ...
6 years, 1 month ago (2014-11-19 23:28:41 UTC) #15
Sunil Ratnu
On 2014/11/19 23:28:41, Julien Chaffraix - PST wrote: > lgtm. > > Sorry I didn't ...
6 years, 1 month ago (2014-11-21 07:25:49 UTC) #16
Julien - ping for review
lgtm https://codereview.chromium.org/535913002/diff/100001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html File LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html (right): https://codereview.chromium.org/535913002/diff/100001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html#newcode8 LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html:8: width: -o-fit-content; I don't think we want the ...
6 years ago (2014-11-26 00:12:51 UTC) #17
Sunil Ratnu
Thanks for the review Julien. https://codereview.chromium.org/535913002/diff/100001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html File LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html (right): https://codereview.chromium.org/535913002/diff/100001/LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html#newcode8 LayoutTests/fast/css-grid-layout/grid-container-width-should-include-scroll-bar-width.html:8: width: -o-fit-content; On 2014/11/26 ...
6 years ago (2014-11-26 03:37:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/535913002/120001
6 years ago (2014-11-26 03:38:43 UTC) #20
commit-bot: I haz the power
6 years ago (2014-11-26 05:00:32 UTC) #21
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185999

Powered by Google App Engine
This is Rietveld 408576698