From 5f60004b2a1395ed11bdd32bddb07c76f3d0429d Mon Sep 17 00:00:00 2001 From: "michaelp%netscape.com" Date: Tue, 15 Dec 1998 05:49:48 +0000 Subject: [PATCH] made damagearea management more aggressive as a temporary fix until individual classes can to the right thing. git-svn-id: svn://10.0.0.236/trunk@16418 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/base/src/nsBodyFrame.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mozilla/layout/html/base/src/nsBodyFrame.cpp b/mozilla/layout/html/base/src/nsBodyFrame.cpp index c341159f2d5..972a622e2af 100644 --- a/mozilla/layout/html/base/src/nsBodyFrame.cpp +++ b/mozilla/layout/html/base/src/nsBodyFrame.cpp @@ -320,6 +320,14 @@ nsBodyFrame::Reflow(nsIPresContext& aPresContext, // For append reflow commands that target the flowed frames just // repaint the newly added part of the frame. if (nsIReflowCommand::FrameAppended == reflowType) { + //this blows. we're repainting everything, but we have no choice + //since we don't know how we got here. see the XXX above for a + //real fix. +#if 1 + damageArea.y = 0; + damageArea.height = aDesiredSize.height; + damageArea.width = aDesiredSize.width; +#else // It's an append reflow command damageArea.y = mRect.YMost(); damageArea.width = aDesiredSize.width; @@ -330,6 +338,7 @@ nsBodyFrame::Reflow(nsIPresContext& aPresContext, damageArea.y = 0; damageArea.height = aDesiredSize.height; } +#endif } else { // Ideally the frame that is the target of the reflow command // (or its parent frame) would generate a damage rect, but