Closed Bug 826149 Opened 13 years ago Closed 13 years ago

Add IsFrameTreeTooDeep() check for flex containers

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file, 1 obsolete file)

Just noticed that nsBlockFrame[1] and nsInlineFrame[2] both have IsFrameTreeTooDeep() early-returns. We should add the same in nsFlexContainerFrame, to limit the perf impact that zillions of flex-containers-nested-inside-of-flex-containers can have. [1] https://mxr.mozilla.org/mozilla-central/source/layout/generic/nsBlockFrame.cpp#989 [2] https://mxr.mozilla.org/mozilla-central/source/layout/generic/nsInlineFrame.cpp#285
Attached patch fix v1 (obsolete) — — Splinter Review
Attachment #697343 - Flags: review?(dbaron)
inbound is looking pretty backed up right now, so I'm posting the ready-to-land patch (w/ r=dbaron added in commit message) as checkin-needed.
Attachment #697343 - Attachment is obsolete: true
Attachment #698913 - Flags: review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: