[css-grid] Remove unneeded code in FreeSpaceForStretchAutoTracksStep()
This is a follow up after r510461. In that patch we added a TODO in IndefiniteSizeStrategy::FreeSpaceForStretchAutoTracksStep(). This was related to how preferred widths were computed, that could be missing the min-width information. However after r511451 removing some wrong code in LayoutGrid::UpdateBlockLayout(), that was trying to compute the preferred widths, we can avoid doing any special calculation for the columns case, as that's already managed by LayoutBlock::ComputePreferredLogicalWidths(). Basically GridTrackSizing provides a min and max logical widths that ignore min-width. But that's not an issue as LayoutGrid only overrides ComputeIntrinsicLogicalWidths(), then ComputePreferredLogicalWidths() will use that information together with the min-size and properly compute the preferred widths. For this reason in FreeSpaceForStretchAutoTracksStep() we don't need any special computation for columns, the same that happens in RecomputeUsedFlexFractionIfNeeded(). Added two unit tests to verify that the preferred widths are right in both cases (auto and flexible tracks with min-width). Bug=773625 Change-Id: I69efeb064fa03685c3e77bca33d294df3e1db79d Reviewed-on: https://chromium-review.googlesource.com/741505Reviewed-by:Javier Fernandez <jfernandez@igalia.com> Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#512692}
Showing
Please register or sign in to comment