Open Bug 1229180 Opened 9 years ago Updated 2 years ago

[css-grid] Optimize setting GridColTrackSizes/GridRowTrackSizes

Categories

(Core :: Layout: Grid, enhancement)

enhancement

Tracking

()

People

(Reporter: tschneider, Unassigned)

References

Details

There are concerns about performance impacts on setting GridColTrackSizes/GridRowTrackSizes on every reflow. We should only set those frame properties when they are needed.
We will have the same problem with the data we want to provide for the DevTools API (bug 1241932). Perhaps we can solve it by making the consumers of the data set a bit on the GridContainerFrame, call FrameNeedsReflow on it, then Flush_Layout. GridContainerFrame::Reflow can then setup the frame properties only if requested by those bits. Then we only pay the price when the data is actually requested, at the cost of an extra (likely unnecessary) reflow on the first request.
Depends on: 1241932
Flags: needinfo?(mats)
Severity: normal → S3
Component: Layout → Layout: Grid
You need to log in before you can comment on or make changes to this bug.