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

Issue 448993002: [CSSGridLayout] Skip items spanning flex tracks in track sizing algo (Closed)

Created:
6 years, 4 months ago by svillar
Modified:
6 years, 2 months 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

[CSSGridLayout] Skip items spanning flex tracks in track sizing algo Section 10.4 of the specs forces us to ignore items spanning tracks with flex sizing functions when resolving the content-based track sizing functions. Items with span < 2 are not affected by this rule (as they will belong to a single track). This way the algorithm ensures that min-content and max-content restrictions are fulfilled before distributing the extra space. BUG=392200 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183807

Patch Set 1 #

Total comments: 8

Patch Set 2 : Patch for landing #

Total comments: 2

Patch Set 3 : Patch for landing v2 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -3 lines) Patch
A LayoutTests/fast/css-grid-layout/flex-and-content-sized-resolution-columns.html View 1 chunk +108 lines, -0 lines 2 comments Download
A LayoutTests/fast/css-grid-layout/flex-and-content-sized-resolution-columns-expected.txt View 1 chunk +30 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 2 chunks +25 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
svillar
Sending for review
6 years, 4 months ago (2014-08-07 10:52:48 UTC) #1
cbiesinger
this looks plausible, but I don't think I understand grid well enough to really review ...
6 years, 4 months ago (2014-08-12 01:21:08 UTC) #2
svillar
@jchaffraix, @esprehn: anyone?
6 years, 3 months ago (2014-08-26 09:12:51 UTC) #3
Julien - ping for review
https://codereview.chromium.org/448993002/diff/1/LayoutTests/fast/css-grid-layout/flex-and-content-sized-resolution-columns.html File LayoutTests/fast/css-grid-layout/flex-and-content-sized-resolution-columns.html (right): https://codereview.chromium.org/448993002/diff/1/LayoutTests/fast/css-grid-layout/flex-and-content-sized-resolution-columns.html#newcode96 LayoutTests/fast/css-grid-layout/flex-and-content-sized-resolution-columns.html:96: shouldBeEqualToString("window.getComputedStyle(" + gridId + ", '').getPropertyValue('grid-template-columns')", columnValue); Shouldn't this ...
6 years, 2 months ago (2014-10-10 18:09:16 UTC) #4
svillar
https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode719 Source/core/rendering/RenderGrid.cpp:719: if (gridItemSpan > 1 && (trackSize.minTrackBreadth().isFlex() || trackSize.maxTrackBreadth().isFlex())) On ...
6 years, 2 months ago (2014-10-13 06:52:32 UTC) #5
svillar
https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode719 Source/core/rendering/RenderGrid.cpp:719: if (gridItemSpan > 1 && (trackSize.minTrackBreadth().isFlex() || trackSize.maxTrackBreadth().isFlex())) On ...
6 years, 2 months ago (2014-10-13 14:38:44 UTC) #6
Julien - ping for review
https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode719 Source/core/rendering/RenderGrid.cpp:719: if (gridItemSpan > 1 && (trackSize.minTrackBreadth().isFlex() || trackSize.maxTrackBreadth().isFlex())) On ...
6 years, 2 months ago (2014-10-13 19:43:49 UTC) #7
svillar
https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/448993002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode719 Source/core/rendering/RenderGrid.cpp:719: if (gridItemSpan > 1 && (trackSize.minTrackBreadth().isFlex() || trackSize.maxTrackBreadth().isFlex())) On ...
6 years, 2 months ago (2014-10-14 06:29:13 UTC) #8
svillar
@jchaffraix: I uploaded a new version which pre-filters spanning items crossing flex tracks even before ...
6 years, 2 months ago (2014-10-15 15:05:34 UTC) #9
Julien - ping for review
lgtm. In the future, please don't highjack unwanted LGTM (I was talking about the other ...
6 years, 2 months ago (2014-10-15 16:04:58 UTC) #10
svillar
First of all sorry for the missunderstanding. It was not my intention at all to ...
6 years, 2 months ago (2014-10-16 06:36:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/448993002/90001
6 years, 2 months ago (2014-10-16 09:51:55 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 12:07:25 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:90001) as 183807

Powered by Google App Engine
This is Rietveld 408576698