Description[CSS Grid Layout] Avoid mark grid as dirty always when removing a child
Current code always mark the grid as dirty in RenderGrid::removeChild().
If the grid auto flow property is different to none, the grid has to be
marked as dirty when a child removed. Just in case, the grid contains
auto-placed items, that might need to be re-positioned.
Otherwise, we can simple remove the child from the grid cells where it
is present and update the coordinates cache accordingly.
BUG=248151
TEST=fast/css-grid-layout/grid-item-removal-auto-placement-update.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170484
Patch Set 1 #
Total comments: 2
Patch Set 2 : Patch for landing #Messages
Total messages: 6 (0 generated)
|