From 02cfbfbc50df22d764063b73d1636d70eb5a3645 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 13 Feb 2003 19:10:50 +0000 Subject: [PATCH] Remove leftover reflow reason hack in fixed-pos reflow. Bug 192291, r+sr=dbaron, a=asa git-svn-id: svn://10.0.0.236/trunk@137778 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsAbsoluteContainingBlock.cpp | 4 ---- mozilla/layout/generic/nsViewportFrame.cpp | 1 - mozilla/layout/html/base/src/nsAbsoluteContainingBlock.cpp | 4 ---- mozilla/layout/html/base/src/nsViewportFrame.cpp | 1 - 4 files changed, 10 deletions(-) diff --git a/mozilla/layout/generic/nsAbsoluteContainingBlock.cpp b/mozilla/layout/generic/nsAbsoluteContainingBlock.cpp index 38527176233..f3a8566a5e8 100644 --- a/mozilla/layout/generic/nsAbsoluteContainingBlock.cpp +++ b/mozilla/layout/generic/nsAbsoluteContainingBlock.cpp @@ -404,10 +404,6 @@ nsAbsoluteContainingBlock::DestroyFrames(nsIFrame* aDelegatingFrame, mAbsoluteFrames.DestroyFrames(aPresContext); } -/** - * NOTE: nsViewportFrame::ReflowFixedFrame is rather similar to this - * function, so changes made here may also need to be made there. - */ // XXX Optimize the case where it's a resize reflow and the absolutely // positioned child has the exact same size and position and skip the // reflow... diff --git a/mozilla/layout/generic/nsViewportFrame.cpp b/mozilla/layout/generic/nsViewportFrame.cpp index e228e703736..66c9fda2657 100644 --- a/mozilla/layout/generic/nsViewportFrame.cpp +++ b/mozilla/layout/generic/nsViewportFrame.cpp @@ -270,7 +270,6 @@ ViewportFrame::Reflow(nsIPresContext* aPresContext, // Make a copy of the reflow state and change the computed width and height // to reflect the available space for the fixed items nsHTMLReflowState reflowState(aReflowState); - reflowState.reason = eReflowReason_Dirty; AdjustReflowStateForScrollbars(aPresContext, reflowState); PRBool wasHandled; diff --git a/mozilla/layout/html/base/src/nsAbsoluteContainingBlock.cpp b/mozilla/layout/html/base/src/nsAbsoluteContainingBlock.cpp index 38527176233..f3a8566a5e8 100644 --- a/mozilla/layout/html/base/src/nsAbsoluteContainingBlock.cpp +++ b/mozilla/layout/html/base/src/nsAbsoluteContainingBlock.cpp @@ -404,10 +404,6 @@ nsAbsoluteContainingBlock::DestroyFrames(nsIFrame* aDelegatingFrame, mAbsoluteFrames.DestroyFrames(aPresContext); } -/** - * NOTE: nsViewportFrame::ReflowFixedFrame is rather similar to this - * function, so changes made here may also need to be made there. - */ // XXX Optimize the case where it's a resize reflow and the absolutely // positioned child has the exact same size and position and skip the // reflow... diff --git a/mozilla/layout/html/base/src/nsViewportFrame.cpp b/mozilla/layout/html/base/src/nsViewportFrame.cpp index e228e703736..66c9fda2657 100644 --- a/mozilla/layout/html/base/src/nsViewportFrame.cpp +++ b/mozilla/layout/html/base/src/nsViewportFrame.cpp @@ -270,7 +270,6 @@ ViewportFrame::Reflow(nsIPresContext* aPresContext, // Make a copy of the reflow state and change the computed width and height // to reflect the available space for the fixed items nsHTMLReflowState reflowState(aReflowState); - reflowState.reason = eReflowReason_Dirty; AdjustReflowStateForScrollbars(aPresContext, reflowState); PRBool wasHandled;