DescriptionRemove an extra relayout for non-percent logical height grid items
The only reason for a grid item to force a relayout after a grid
area's logical height change is if it has a percentage height. In
all other cases, this would cause an unneeded relayout. Note that
changing the logical width still forces a relayout as the situation
is not that simple.
This improves auto-grid-lots-of-data.html from 94 runs/s to 226
runs/s as we avoid a relayout in layoutGridItems for every grid
items.
BUG=273238
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157633
Patch Set 1 #
Total comments: 2
Patch Set 2 : Updated patch: Uses RenderBox::hasRelativeLogicalHeight and includes testing for min-height/max-heiā¦ #
Total comments: 1
Messages
Total messages: 8 (0 generated)
|