Bug 740857 - Remove dead code from nsFrame::BoxReflow; r=dbaron

This commit is contained in:
Ehsan Akhgari 2012-03-30 10:27:51 -07:00
parent 0be293da76
commit 7c68b9fbe7

View File

@ -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);