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

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

Issue 22949002: [CSS Grid Layout] Avoid preferred logical widths' recomputations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « PerformanceTests/Layout/fixed-grid-lots-of-data.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderGrid.cpp
diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp
index 9d0d58990de04c5fe7aeb8b1dee48edbb24739b6..0a753c1dea0de20ba1bf1794f2a7d9be945532bc 100644
--- a/Source/core/rendering/RenderGrid.cpp
+++ b/Source/core/rendering/RenderGrid.cpp
@@ -595,6 +595,9 @@ void RenderGrid::resolveContentBasedTrackSizingFunctionsForItems(TrackSizingDire
tracks.append(&track);
}
+ if (tracks.isEmpty())
+ return;
+
LayoutUnit additionalBreadthSpace = (this->*sizingFunction)(gridItem, direction, columnTracks);
for (size_t trackIndexForSpace = initialTrackIndex; trackIndexForSpace <= finalTrackIndex; ++trackIndexForSpace) {
GridTrack& track = (direction == ForColumns) ? columnTracks[trackIndexForSpace] : rowTracks[trackIndexForSpace];
« no previous file with comments | « PerformanceTests/Layout/fixed-grid-lots-of-data.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698