Made sure to Invalidate() for the initial reflow, too

This commit is contained in:
troy%netscape.com 1999-07-21 04:39:24 +00:00
parent 4b982bb3e6
commit 93621b70eb
2 changed files with 6 additions and 4 deletions

View File

@ -299,8 +299,9 @@ RootFrame::Reflow(nsIPresContext& aPresContext,
kidFrame->SetRect(rect);
}
// If this is a resize reflow, then do a repaint
if (eReflowReason_Resize == aReflowState.reason) {
// If this is a resize reflow or the initial reflow, then do a repaint
if ((eReflowReason_Initial == aReflowState.reason) ||
(eReflowReason_Resize == aReflowState.reason)) {
nsRect damageRect(0, 0, aReflowState.availableWidth, aReflowState.availableHeight);
Invalidate(damageRect, PR_FALSE);
}

View File

@ -299,8 +299,9 @@ RootFrame::Reflow(nsIPresContext& aPresContext,
kidFrame->SetRect(rect);
}
// If this is a resize reflow, then do a repaint
if (eReflowReason_Resize == aReflowState.reason) {
// If this is a resize reflow or the initial reflow, then do a repaint
if ((eReflowReason_Initial == aReflowState.reason) ||
(eReflowReason_Resize == aReflowState.reason)) {
nsRect damageRect(0, 0, aReflowState.availableWidth, aReflowState.availableHeight);
Invalidate(damageRect, PR_FALSE);
}