Closed Bug 1536778 Opened 1 year ago Closed 1 year ago

Avoid creating nsDisplayListCollection in nsBlockFrame::BuildDisplayList() and optimize DisplayLine enter condition

Categories

(Core :: Web Painting, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: miko, Assigned: miko)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We can avoid creating a local nsDisplayListCollection in nsBlockFrame::BuildDisplayList()1.

In DisplayLine(), the early-exit condition2 can be optimized and moved to nsBlockFrame::BuildDisplayList(), so we can avoid checking same things multiple times.

Pushed by mikokm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d5b4ff544e7f
Part 1: Use aLists instead of linesDisplayListCollection r=mattwoodrow
https://hg.mozilla.org/integration/autoland/rev/4c580575e563
Part 2: Optimize descending into lines r=mattwoodrow
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Regressions: 1552789
You need to log in before you can comment on or make changes to this bug.