Removed hack reflow code now that body/block do it properly

git-svn-id: svn://10.0.0.236/trunk@6295 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1998-07-23 19:56:11 +00:00
parent 2b5bf809b8
commit 33be9dd48b
2 changed files with 0 additions and 30 deletions

View File

@ -116,21 +116,6 @@ nsPlaceholderFrame::Reflow(nsIPresContext& aPresContext,
// Notify our containing block that there's a new floater
container->AddFloater(&aPresContext, aReflowState, mAnchoredItem, this);
} else {
// XXX This causes anchored-items sizes to get fixed up; this is
// not quite right because this class should be implementing one
// of the incremental reflow methods and propagating things down
// properly to the contained frame.
nsReflowMetrics desiredSize(nsnull);
nsReflowState reflowState(mAnchoredItem, aReflowState, aReflowState.maxSize,
eReflowReason_Resize);
mAnchoredItem->WillReflow(aPresContext);
mAnchoredItem->Reflow(aPresContext, desiredSize, reflowState, aStatus);
mAnchoredItem->SizeTo(desiredSize.width, desiredSize.height);
//XXXdeprecated container->PlaceFloater(aPresContext, mAnchoredItem, this);
mAnchoredItem->DidReflow(aPresContext, NS_FRAME_REFLOW_FINISHED);
}
if (nsIFrame::GetShowFrameBorders()) {

View File

@ -116,21 +116,6 @@ nsPlaceholderFrame::Reflow(nsIPresContext& aPresContext,
// Notify our containing block that there's a new floater
container->AddFloater(&aPresContext, aReflowState, mAnchoredItem, this);
} else {
// XXX This causes anchored-items sizes to get fixed up; this is
// not quite right because this class should be implementing one
// of the incremental reflow methods and propagating things down
// properly to the contained frame.
nsReflowMetrics desiredSize(nsnull);
nsReflowState reflowState(mAnchoredItem, aReflowState, aReflowState.maxSize,
eReflowReason_Resize);
mAnchoredItem->WillReflow(aPresContext);
mAnchoredItem->Reflow(aPresContext, desiredSize, reflowState, aStatus);
mAnchoredItem->SizeTo(desiredSize.width, desiredSize.height);
//XXXdeprecated container->PlaceFloater(aPresContext, mAnchoredItem, this);
mAnchoredItem->DidReflow(aPresContext, NS_FRAME_REFLOW_FINISHED);
}
if (nsIFrame::GetShowFrameBorders()) {