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

Issue 196943026: [CSS Grid Layout] Support span in auto-placement algorithm (Closed)

Created:
6 years, 9 months ago by Manuel Rego
Modified:
6 years, 6 months ago
CC:
blink-reviews, jfernandez, zoltan1, svillar, bemjb+rendering_chromium.org, leviw+renderwatch, eae+blinkwatch, jchaffraix+rendering, dsinclair, pdr.
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Grid Layout] Support span in auto-placement algorithm Modify auto-placement algorithm in order to support span in both definite and automatic positions. This patch fixes examples like: grid-row: auto; grid-column: 2 / span 3; And also: grid-row: auto; grid-column: span 3; BUG=353789 TEST=fast/css-grid-layout/grid-item-auto-placement-definite-span.html TEST=fast/css-grid-layout/grid-item-auto-placement-automatic-span.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175343

Patch Set 1 #

Total comments: 3

Patch Set 2 : New patch applying review comments #

Total comments: 4

Patch Set 3 : Applied review comments #

Patch Set 4 : Add comment in areCellsEmpty() method #

Total comments: 2

Patch Set 5 : Passing 2 arguments to nextEmptyGridArea() #

Patch Set 6 : Comming back to 1 argument in nextEmptyGridArea() #

Patch Set 7 : New approach #

Patch Set 8 : Rebased patch after GridResolvedPosition was introduced #

Total comments: 6

Patch Set 9 : New rebased version including review comments #

Total comments: 4

Patch Set 10 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -59 lines) Patch
A LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html View 1 2 3 4 5 6 7 8 1 chunk +168 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html View 1 1 chunk +95 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-spanning-resolution.html View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderGrid.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +90 lines, -43 lines 0 comments Download
M Source/core/rendering/style/GridResolvedPosition.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/style/GridResolvedPosition.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +45 lines, -12 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Manuel Rego
6 years, 9 months ago (2014-03-18 23:30:03 UTC) #1
Julien - ping for review
https://codereview.chromium.org/196943026/diff/1/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html File LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html (right): https://codereview.chromium.org/196943026/diff/1/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html#newcode5 LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html:5: <style type="text/css"> No need for |type|. https://codereview.chromium.org/196943026/diff/1/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html#newcode51 LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html:51: <div ...
6 years, 9 months ago (2014-03-20 18:33:14 UTC) #2
Manuel Rego
Thanks for the review, I've just uploaded a new version of the patch. On 2014/03/20 ...
6 years, 9 months ago (2014-03-20 23:18:56 UTC) #3
Julien - ping for review
More comments, the patch looks much nicer, thanks! https://codereview.chromium.org/196943026/diff/20001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/196943026/diff/20001/Source/core/rendering/RenderGrid.cpp#newcode125 Source/core/rendering/RenderGrid.cpp:125: bool ...
6 years, 9 months ago (2014-03-21 18:18:02 UTC) #4
Manuel Rego
Thanks for the review. On 2014/03/21 18:18:02, Julien Chaffraix - PST wrote: > https://codereview.chromium.org/196943026/diff/20001/Source/core/rendering/RenderGrid.cpp#newcode125 > ...
6 years, 9 months ago (2014-03-24 12:33:21 UTC) #5
Julien - ping for review
Sorry for the long delay in the review. https://codereview.chromium.org/196943026/diff/60001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/196943026/diff/60001/Source/core/rendering/RenderGrid.cpp#newcode145 Source/core/rendering/RenderGrid.cpp:145: PassOwnPtr<GridCoordinate> ...
6 years, 8 months ago (2014-04-04 00:10:16 UTC) #6
Manuel Rego
Thanks for the review. On 2014/04/04 00:10:16, Julien Chaffraix - PST wrote: > https://codereview.chromium.org/196943026/diff/60001/Source/core/rendering/RenderGrid.cpp#newcode145 > ...
6 years, 8 months ago (2014-04-07 10:54:31 UTC) #7
Manuel Rego
On 2014/04/07 10:54:31, Manuel Rego wrote: > On 2014/04/04 00:10:16, Julien Chaffraix - PST wrote: ...
6 years, 8 months ago (2014-04-07 22:26:27 UTC) #8
Manuel Rego
I've been doing more progress on this and finally uploaded a new patch fixing both ...
6 years, 8 months ago (2014-04-09 11:23:17 UTC) #9
Manuel Rego
Uploaded rebased version of the patch after r171156 (where GridResolvedPosition was introduced).
6 years, 8 months ago (2014-04-15 11:07:28 UTC) #10
Julien - ping for review
https://codereview.chromium.org/196943026/diff/140001/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html File LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html (right): https://codereview.chromium.org/196943026/diff/140001/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html#newcode12 LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html:12: grid-column: span 2; That should resolve to 'auto / ...
6 years, 7 months ago (2014-05-16 10:08:09 UTC) #11
Manuel Rego
Thanks for the review. I've just uploaded a new version of the patch. On 2014/05/16 ...
6 years, 7 months ago (2014-05-23 11:31:54 UTC) #12
eseidel
jchaffraix: ptal?
6 years, 6 months ago (2014-05-28 23:29:35 UTC) #13
Julien - ping for review
lgtm with comments. https://codereview.chromium.org/196943026/diff/160001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/196943026/diff/160001/Source/core/rendering/RenderGrid.cpp#newcode752 Source/core/rendering/RenderGrid.cpp:752: growGrid(ForColumns, coordinate.columns.resolvedFinalPosition.toInt()); I think we should ...
6 years, 6 months ago (2014-05-29 21:06:59 UTC) #14
Manuel Rego
On 2014/05/29 21:06:59, Julien Chaffraix - PST wrote: > lgtm with comments. Thanks for the ...
6 years, 6 months ago (2014-06-02 20:19:12 UTC) #15
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 6 months ago (2014-06-02 20:24:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/196943026/180001
6 years, 6 months ago (2014-06-02 20:24:40 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-02 22:09:26 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 22:53:45 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/9939)
6 years, 6 months ago (2014-06-02 22:53:45 UTC) #20
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 6 months ago (2014-06-03 08:05:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/196943026/180001
6 years, 6 months ago (2014-06-03 08:06:21 UTC) #22
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 11:05:06 UTC) #23
Message was sent while issue was closed.
Change committed as 175343

Powered by Google App Engine
This is Rietveld 408576698