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