зеркало из https://github.com/mozilla/gecko-dev.git
Made sure to Invalidate() for the initial reflow, too
This commit is contained in:
Родитель
4b982bb3e6
Коммит
93621b70eb
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче