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
This commit is contained in:
@@ -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...
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user