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

Unified Diff: Source/core/rendering/RenderGrid.cpp

Issue 314993002: [CSS Grid Layout] Fix auto-placement algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}
}

Powered by Google App Engine
This is Rietveld 408576698