Bug 475968. Eliminate NS_FRAME_OUTSIDE_CHILDREN flag, store small overflow areas cheaply within the frame. r+sr=roc

This commit is contained in:
Jonathan Kew
2009-04-06 12:31:50 +12:00
parent ad75464e5e
commit ccbd2d2564
19 changed files with 181 additions and 59 deletions

View File

@@ -923,7 +923,7 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
desiredSize.width = cellDesiredSize.width;
desiredSize.height = cellDesiredSize.height;
if (cellFrame->GetStateBits() & NS_FRAME_OUTSIDE_CHILDREN)
if (cellFrame->HasOverflowRect())
desiredSize.mOverflowArea = cellFrame->GetOverflowRect();
else
desiredSize.mOverflowArea.SetRect(0, 0, cellDesiredSize.width,