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

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

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

Description

[CSS Grid Layout] Support sparse in auto-placement algorithm Sparse mode for auto-placement algorithm was not implemented yet. This patch implements sparse mode for auto-placement algorithm. It keeps track of the auto-placement cursor in RenderGrid::placeAutoMajorAxisItemsOnGrid() and updates it accordingly when auto-positioned items are placed. If we're in dense mode it resets the cursor after each item. GridIterator has been adapted to look for empty areas from a given position in both directions. Test cases have been adapted accordingly, adding new cases to cover both sparse and dense options. TEST=fast/css-grid-layout/grid-auto-flow-sparse.html BUG=384099 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178262

Patch Set 1 #

Total comments: 8

Patch Set 2 : Patch for landing #

Patch Set 3 : Patch for landing + FIXME for rename the style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -32 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-auto-flow-resolution.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-auto-flow-sparse.html View 1 1 chunk +109 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-auto-flow-sparse-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-container-change-explicit-grid-recompute-child.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-container-change-named-grid-lines-recompute-child.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html View 1 5 chunks +4 lines, -10 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-removal-auto-placement-update.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid.css View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 4 chunks +38 lines, -11 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Manuel Rego
6 years, 5 months ago (2014-07-01 10:58:55 UTC) #1
svillar
On 2014/07/01 10:58:55, Manuel Rego wrote: Informally reviewing the change looks awesome to me.
6 years, 5 months ago (2014-07-11 09:29:02 UTC) #2
Julien - ping for review
lgtm https://codereview.chromium.org/362733002/diff/1/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/362733002/diff/1/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html#newcode104 LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html:104: <div class="grid gridAutoFlowRow"> Shouldn't this be gridAutoFlowRowDense as ...
6 years, 5 months ago (2014-07-14 16:22:39 UTC) #3
Manuel Rego
Thanks for the review. I've some doubts regarding the tests comments, could you take another ...
6 years, 5 months ago (2014-07-14 20:10:03 UTC) #4
Julien - ping for review
https://codereview.chromium.org/362733002/diff/1/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/362733002/diff/1/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html#newcode104 LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html:104: <div class="grid gridAutoFlowRow"> On 2014/07/14 20:10:03, Manuel Rego wrote: ...
6 years, 5 months ago (2014-07-14 21:15:07 UTC) #5
Manuel Rego
https://codereview.chromium.org/362733002/diff/1/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/362733002/diff/1/LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html#newcode104 LayoutTests/fast/css-grid-layout/grid-item-auto-placement-automatic-span.html:104: <div class="grid gridAutoFlowRow"> On 2014/07/14 21:15:06, Julien Chaffraix - ...
6 years, 5 months ago (2014-07-14 21:45:36 UTC) #6
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 5 months ago (2014-07-16 08:17:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/362733002/40001
6 years, 5 months ago (2014-07-16 08:17:45 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-16 09:47:56 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 10:48:02 UTC) #10
Message was sent while issue was closed.
Change committed as 178262

Powered by Google App Engine
This is Rietveld 408576698