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

Issue 920413002: [CSS Grid Layout] Support "sparse" in auto-placed items locked to a row/column (Closed)

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

Description

[CSS Grid Layout] Support "sparse" in auto-placed items locked to a row/column The first step of grid item placement algorithm has been updated in order to support both "sparse" and "dense" modes. Current code is always doing a "dense" packing in this case. Modified RenderGrid::placeSpecifiedMajorAxisItemsOnGrid() in order to add a cursor for each row/column and use it to place items in the right position. See: http://dev.w3.org/csswg/css-grid/#auto-placement-algo BUG=384099 TEST=fast/css-grid-layout/grid-item-auto-placement-fixed-row-column.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190759

Patch Set 1 #

Total comments: 5

Patch Set 2 : Patch for landing using a map instead of a vector #

Patch Set 3 : Fixing issues in the bots due to 0 key (using WTF::UnsignedWithZeroKeyHashTraits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -33 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html View 1 chunk +0 lines, -6 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-auto-placement-definite-span.html View 1 chunk +0 lines, -26 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-item-auto-placement-fixed-row-column.html View 1 chunk +218 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-item-auto-placement-fixed-row-column-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid.css View 2 chunks +32 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
Manuel Rego
5 years, 10 months ago (2015-02-13 13:02:53 UTC) #2
Julien - ping for review
https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode992 Source/core/rendering/RenderGrid.cpp:992: GridIterator iterator(m_grid, autoPlacementMajorAxisDirection(), majorAxisPositions->resolvedInitialPosition.toInt(), isGridAutoFlowDense ? 0 : minorAxisCursors[majorAxisPositions->resolvedInitialPosition.toInt()]); ...
5 years, 10 months ago (2015-02-18 21:08:40 UTC) #3
Manuel Rego
Thanks for the review, see the comments inline. https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode992 Source/core/rendering/RenderGrid.cpp:992: GridIterator ...
5 years, 10 months ago (2015-02-18 21:23:10 UTC) #4
Julien - ping for review
lgtm https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode984 Source/core/rendering/RenderGrid.cpp:984: Vector<size_t> minorAxisCursors; I would love a comment about ...
5 years, 10 months ago (2015-02-23 16:15:16 UTC) #5
Manuel Rego
Thank for the review. https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/920413002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode984 Source/core/rendering/RenderGrid.cpp:984: Vector<size_t> minorAxisCursors; On 2015/02/23 16:15:16, ...
5 years, 10 months ago (2015-02-23 22:22:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/920413002/20001
5 years, 10 months ago (2015-02-23 22:22:54 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/48363)
5 years, 10 months ago (2015-02-24 04:43:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/920413002/40001
5 years, 10 months ago (2015-02-24 16:50:26 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 17:02:13 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190759

Powered by Google App Engine
This is Rietveld 408576698