mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Made sure to Invalidate() for the initial reflow, too
This commit is contained in:
parent
4b982bb3e6
commit
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user