[css-grid] Initialize OverrideContainingBlock size for grid items
This patch removes the grid logic from LayoutBox::ContainingBlockLogicalWidth|HeightForContent(). Instead it initializes the OverrideContainingBlock size to zero in LayoutGrid::UpdateBlockLayout(). For grid items we don't want to use the grid container size (which would be the regular containing block size), so we want to use the overridden value. And while we don't have such value, it's better we use zero (so percentages are not resolved against the wrong thing). This change is covered by existent tests. Change-Id: If6a96abe7148203a2cdb9ffb2b9dd487239f7aae Reviewed-on: https://chromium-review.googlesource.com/989734 Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Sergio Villar <svillar@igalia.com> Cr-Commit-Position: refs/heads/master@{#549461}
Showing
Please register or sign in to comment