[css-grid] Subtract scrollbar in ComputeReplacedLogicalHeightUsing()
In LayoutBox::ComputeReplacedLogicalHeightUsing() we were using the OverrideContentLogicalHeight() plus scrollbar height, that was wrong and we should subtract the scrollbar too. This caused issues to resolve the percentage heights on grid item replaced children, if the grid item has a scrollbar. To fix the issue we just need to follow the suggestion in the TODO and use OverrideContentLogicalHeight() directly. This was the last place using OverrideContentAndScrollbarLogicalHeight() so we can get rid of it. The patch removes that method together with OverrideContentAndScrollbarLogicalWidth() that was no longer used. BUG=837141 TEST=external/wpt/css/css-grid/grid-items/percentage-size-replaced-subitems-001.html Change-Id: I28cf6e65c21e6314808c4430515f06c07d4a739e Reviewed-on: https://chromium-review.googlesource.com/1035003Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#554834}
Showing
Please register or sign in to comment