Tweaked the repaint code in Reflow() to make sure the entire frame is

repainted for a resize reflow
This commit is contained in:
troy%netscape.com 1998-07-23 23:28:03 +00:00
Родитель e91ad473c2
Коммит 34af0e1d92
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -443,10 +443,13 @@ NS_METHOD RootContentFrame::Reflow(nsIPresContext& aPresContext,
nsRect rect(0, 0, aDesiredSize.width, aDesiredSize.height);
mFirstChild->SetRect(rect);
// For initial reflow and resize reflow repaint the entire visible area
if ((eReflowReason_Initial == reflowReason) ||
(eReflowReason_Resize == aReflowState.reason)) {
// Do the necessary repainting
if (eReflowReason_Initial == reflowReason) {
// Repaint the visible area
Invalidate(nsRect(0, 0, aReflowState.maxSize.width, aReflowState.maxSize.height));
} else if (eReflowReason_Resize == aReflowState.reason) {
// Repaint the entire frame
Invalidate(nsRect(0, 0, aReflowState.maxSize.width, aDesiredSize.height));
}
}
}