From 93621b70ebb51b01e2f36fa81cb21387938f6b3f Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Wed, 21 Jul 1999 04:39:24 +0000 Subject: [PATCH] Made sure to Invalidate() for the initial reflow, too --- layout/generic/nsHTMLFrame.cpp | 5 +++-- layout/html/base/src/nsHTMLFrame.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/layout/generic/nsHTMLFrame.cpp b/layout/generic/nsHTMLFrame.cpp index da1233d0edea..0f12b1e96382 100644 --- a/layout/generic/nsHTMLFrame.cpp +++ b/layout/generic/nsHTMLFrame.cpp @@ -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); } diff --git a/layout/html/base/src/nsHTMLFrame.cpp b/layout/html/base/src/nsHTMLFrame.cpp index da1233d0edea..0f12b1e96382 100644 --- a/layout/html/base/src/nsHTMLFrame.cpp +++ b/layout/html/base/src/nsHTMLFrame.cpp @@ -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); }