|
[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
Total comments: 8
|
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
|
Total messages: 10 (0 generated)
|