mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 740857 - Remove dead code from nsFrame::BoxReflow; r=dbaron
This commit is contained in:
parent
0be293da76
commit
7c68b9fbe7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user