Closed Bug 68967 Opened 24 years ago Closed 24 years ago

we should set flags during reflow about containers

Categories

(Core :: Layout, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 68947

People

(Reporter: buster, Assigned: attinasi)

Details

There is code in layout to walk up the parent list to find out if a child is in a certain kind of container. We should remove this code (in fact, it looks like nsTableFrame::IsNested is unused dead code) and replace it with a bitfield in nsHTMLReflowState where each bit corresponds to an interesting container type. Three uses off the top of my head: 1. nsTableFrame would set it so all child content would know it was inside a table (nsTableFrame::IsNested, or whatever replaced it) 2. nsTextControlFrame would set it so child content could optimize incremental reflows (nsBlockFrame::IsIncrementalDamageConstrained). 3. combo boxes could probably have a similar optimization. This could be used in conjunction with the ideas we have for propagating a bit up in the nsHTMLReflowMetrics that told the parent whether anything had changed or not.
*** This bug has been marked as a duplicate of 68947 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.