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
Родитель 8424640b31
Коммит 8f6ca33b27
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

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

Просмотреть файл

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