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:
@@ -409,12 +409,10 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
||||
aKidFrame->MoveTo(aPresContext,
|
||||
x, border.top + kidReflowState.mComputedOffsets.top + kidReflowState.mComputedMargin.top);
|
||||
|
||||
// Position its view
|
||||
nsIView* kidView;
|
||||
aKidFrame->GetView(aPresContext, &kidView);
|
||||
// Don't bother it doing it now if we haven't yet determined the left offset
|
||||
// Position its view, but don't bother it doing it now if we haven't
|
||||
// yet determined the left offset
|
||||
if (NS_AUTOOFFSET != kidReflowState.mComputedOffsets.left) {
|
||||
nsContainerFrame::PositionFrameView(aPresContext, aKidFrame, kidView);
|
||||
nsContainerFrame::PositionFrameView(aPresContext, aKidFrame);
|
||||
}
|
||||
|
||||
// Do the reflow
|
||||
@@ -454,6 +452,8 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
|
||||
|
||||
// Size and position the view and set its opacity, visibility, content
|
||||
// transparency, and clip
|
||||
nsIView* kidView;
|
||||
aKidFrame->GetView(aPresContext, &kidView);
|
||||
nsContainerFrame::SyncFrameViewAfterReflow(aPresContext, aKidFrame, kidView,
|
||||
&kidDesiredSize.mOverflowArea);
|
||||
aKidFrame->DidReflow(aPresContext, NS_FRAME_REFLOW_FINISHED);
|
||||
|
||||
Reference in New Issue
Block a user