Chromium Code Reviews| Index: Source/core/rendering/RenderGrid.cpp |
| diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp |
| index 163edcffe0754ba440f5c24fba58f1a10b62528a..83e5aa72a2e30748533dc962cb336a848e887b2b 100644 |
| --- a/Source/core/rendering/RenderGrid.cpp |
| +++ b/Source/core/rendering/RenderGrid.cpp |
| @@ -932,6 +932,9 @@ void RenderGrid::placeAutoMajorAxisItemOnGrid(RenderBox* gridItem) |
| const size_t endOfMinorAxis = autoPlacementMinorAxisDirection() == ForColumns ? gridColumnCount() : gridRowCount(); |
| if (minorAxisFinalPositionIndex.toInt() < endOfMinorAxis) |
| break; |
| + |
| + // Discard empty grid area as it does not fit in the minor axis direction. |
| + emptyGridArea = nullptr; |
|
svillar
2014/06/04 09:48:22
Wouldn't it be possible to call here createEmptyGr
Manuel Rego
2014/06/04 10:02:51
We're looping over the major axis, as you can read
Julien - ping for review
2014/06/10 00:08:05
It would be good to add such a test case, that wou
Manuel Rego
2014/06/10 09:49:02
That was what I was doing in the modification of t
|
| } |
| } |