| Index: Source/core/rendering/RenderGrid.cpp
|
| diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp
|
| index 163edcffe0754ba440f5c24fba58f1a10b62528a..fa4ff5e7865270123debe9559ba4b19f87303bbe 100644
|
| --- a/Source/core/rendering/RenderGrid.cpp
|
| +++ b/Source/core/rendering/RenderGrid.cpp
|
| @@ -932,6 +932,10 @@ 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.
|
| + // We don't need to create a new empty grid area yet as we might find a valid one in the next iteration.
|
| + emptyGridArea = nullptr;
|
| }
|
| }
|
|
|
|
|