Invalidate things correctly when the caption or inner table is resized. Bug 424465, r=bernd, sr=roc

This commit is contained in:
2008-04-01 14:53:19 -07:00
parent 2f3d295e3b
commit 20f8de901f
5 changed files with 29 additions and 97 deletions

View File

@@ -934,6 +934,12 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
}
}
// If our parent is in initial reflow, it'll handle invalidating our
// entire overflow rect.
if (!(GetParent()->GetStateBits() & NS_FRAME_FIRST_REFLOW)) {
CheckInvalidateSizeChange(aPresContext, aDesiredSize, aReflowState);
}
// remember the desired size for this reflow
SetDesiredSize(aDesiredSize);