Bug 55086. Change nsContainerFrame::PositionFrameView() to position child views. Eliminate the |aView| parameter from that method, because the view can be retrieved from the frame and need not be done by the caller. Eliminate the NS_FRAME_NO_MOVE_CHILD_VIEWS flag, which was read-only; i.e., never set by anyone. r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -134,15 +134,13 @@ NS_IMETHODIMP nsHTMLReflowCommand::Dispatch(nsIPresContext* aPresContext,
|
||||
nsHTMLReflowState reflowState(aPresContext, root, *this,
|
||||
&aRendContext, aMaxSize);
|
||||
nsReflowStatus status;
|
||||
nsIView* view;
|
||||
|
||||
root->WillReflow(aPresContext);
|
||||
root->GetView(aPresContext, &view);
|
||||
if (view) {
|
||||
nsContainerFrame::PositionFrameView(aPresContext, root, view);
|
||||
}
|
||||
nsContainerFrame::PositionFrameView(aPresContext, root);
|
||||
root->Reflow(aPresContext, aDesiredSize, reflowState, status);
|
||||
root->SizeTo(aPresContext, aDesiredSize.width, aDesiredSize.height);
|
||||
nsIView* view;
|
||||
root->GetView(aPresContext, &view);
|
||||
if (view) {
|
||||
nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, root, view,
|
||||
nsnull);
|
||||
|
||||
Reference in New Issue
Block a user