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

@@ -111,7 +111,7 @@ nsPageContentFrame::Reflow(nsPresContext* aPresContext,
kidReflowState.mStylePadding->GetPadding(padding);
// First check the combined area
if (NS_FRAME_OUTSIDE_CHILDREN & frame->GetStateBits()) {
if (frame->HasOverflowRect()) {
// The background covers the content area and padding area, so check
// for children sticking outside the child frame's padding edge
if (aDesiredSize.mOverflowArea.XMost() > aDesiredSize.width) {