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

Issue 1321723008: [css-grid] Percentage columns shouldn't include border and padding (Closed)

Created:
5 years, 3 months ago by Manuel Rego
Modified:
5 years, 2 months ago
CC:
blink-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, svillar, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, jchaffraix+rendering, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[css-grid] Percentage columns shouldn't include border and padding Subtract border and padding when we're calculating the breadth of the columns in LayoutGrid::computeUsedBreadthOfSpecifiedLength(). Added test to check the behavior for both columns and rows. BUG=529203 TEST=fast/css-grid-layout/grid-percent-track-margin-border-padding.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201909

Patch Set 1 #

Patch Set 2 : New version increasing pixels for margin, border and padding #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -1 line) Patch
A LayoutTests/fast/css-grid-layout/grid-percent-track-margin-border-padding.html View 1 1 chunk +102 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-percent-track-margin-border-padding-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutGrid.cpp View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 11 (3 generated)
Manuel Rego
5 years, 3 months ago (2015-09-08 10:33:51 UTC) #2
svillar
Nice catch! lgtm Just in case you want to provide a super-awesome patch, please ensure ...
5 years, 3 months ago (2015-09-08 10:43:37 UTC) #3
Manuel Rego
On 2015/09/08 10:43:37, svillar wrote: > Nice catch! lgtm Thanks for the quick review! > ...
5 years, 3 months ago (2015-09-08 10:51:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321723008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321723008/20001
5 years, 3 months ago (2015-09-08 10:51:34 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201909
5 years, 3 months ago (2015-09-08 12:00:14 UTC) #8
cbiesinger
https://codereview.chromium.org/1321723008/diff/20001/Source/core/layout/LayoutGrid.cpp File Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1321723008/diff/20001/Source/core/layout/LayoutGrid.cpp#newcode528 Source/core/layout/LayoutGrid.cpp:528: return valueForLength(trackLength, direction == ForColumns ? logicalWidth() - borderAndPaddingLogicalWidth() ...
5 years, 2 months ago (2015-10-08 20:51:24 UTC) #9
Manuel Rego
https://codereview.chromium.org/1321723008/diff/20001/Source/core/layout/LayoutGrid.cpp File Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/1321723008/diff/20001/Source/core/layout/LayoutGrid.cpp#newcode528 Source/core/layout/LayoutGrid.cpp:528: return valueForLength(trackLength, direction == ForColumns ? logicalWidth() - borderAndPaddingLogicalWidth() ...
5 years, 2 months ago (2015-10-09 13:16:25 UTC) #10
cbiesinger
5 years, 2 months ago (2015-10-09 14:28:00 UTC) #11
Message was sent while issue was closed.
On 2015/10/09 13:16:25, Manuel Rego wrote:
>
https://codereview.chromium.org/1321723008/diff/20001/Source/core/layout/Layo...
> File Source/core/layout/LayoutGrid.cpp (right):
> 
>
https://codereview.chromium.org/1321723008/diff/20001/Source/core/layout/Layo...
> Source/core/layout/LayoutGrid.cpp:528: return valueForLength(trackLength,
> direction == ForColumns ? logicalWidth() - borderAndPaddingLogicalWidth() :
> std::max(LayoutUnit(), computeContentLogicalHeight(MainOrPreferredSize,
> style()->logicalHeight(), -1)));
> On 2015/10/08 20:51:24, cbiesinger wrote:
> > I'm way too late here, but... maybe use contentLogicaLWidth() instead of
> > logicalWidth() - borderAndPaddingLogicalWidth(), which would also take care
of
> > the scrollbar width
> 
> Yeah, that was changed a few days later in:
> https://codereview.chromium.org/1338703002/

Ah good :) Sorry, I'm slowly catching up on older emails.

Powered by Google App Engine
This is Rietveld 408576698