Invalidate tables a little harder. Bug 421632, r+sr=roc

This commit is contained in:
2008-03-16 13:32:48 -07:00
parent 137f1fd8a8
commit c5fff65119
7 changed files with 96 additions and 31 deletions

View File

@@ -870,6 +870,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
nsPoint kidOrigin(leftInset, topInset);
nsRect origRect = firstKid->GetRect();
nsRect origOverflowRect = firstKid->GetOverflowRect();
PRBool firstReflow = (firstKid->GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0;
ReflowChild(firstKid, aPresContext, kidSize, kidReflowState,
@@ -898,7 +899,8 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
FinishReflowChild(firstKid, aPresContext, &kidReflowState, kidSize,
kidOrigin.x, kidOrigin.y, 0);
nsTableFrame::InvalidateFrame(firstKid, origRect, firstReflow);
nsTableFrame::InvalidateFrame(firstKid, origRect, origOverflowRect,
firstReflow);
// first, compute the height which can be set w/o being restricted by aMaxSize.height
nscoord cellHeight = kidSize.height;