From da80d50b476d5afd06ea0f874a68f8f4fd96f30a Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari <ehsan.akhgari@gmail.com> Date: Fri, 30 Mar 2012 10:27:51 -0700 Subject: [PATCH] Bug 740857 - Remove dead code from nsFrame::BoxReflow; r=dbaron --- layout/generic/nsFrame.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 2284bb7214b..3e8ac4a1be2 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -7632,14 +7632,8 @@ nsFrame::BoxReflow(nsBoxLayoutState& aState, nsBoxLayoutMetrics *metrics = BoxMetrics(); nsReflowStatus status = NS_FRAME_COMPLETE; - bool redrawAfterReflow = false; - bool redrawNow = false; - bool needsReflow = NS_SUBTREE_DIRTY(this); - if (redrawNow) - Redraw(aState); - // if we don't need a reflow then // lets see if we are already that size. Yes? then don't even reflow. We are done. if (!needsReflow) { @@ -7806,13 +7800,6 @@ nsFrame::BoxReflow(nsBoxLayoutState& aState, NS_ASSERTION(NS_FRAME_IS_COMPLETE(status), "bad status"); - if (redrawAfterReflow) { - nsRect r = GetRect(); - r.width = aDesiredSize.width; - r.height = aDesiredSize.height; - Redraw(aState, &r); - } - PRUint32 layoutFlags = aState.LayoutFlags(); nsContainerFrame::FinishReflowChild(this, aPresContext, &reflowState, aDesiredSize, aX, aY, layoutFlags | NS_FRAME_NO_MOVE_FRAME);