Re-ordered DeleteFrame() code to fix a FMR

git-svn-id: svn://10.0.0.236/trunk@20269 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-02-10 18:12:24 +00:00
parent a63203122e
commit c6590e6940
6 changed files with 18 additions and 18 deletions

View File

@@ -419,9 +419,6 @@ nsBlockFrame::~nsBlockFrame()
NS_IMETHODIMP
nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
{
nsLineBox::DeleteLineList(aPresContext, mLines);
nsLineBox::DeleteLineList(aPresContext, mOverflowLines);
// When we have a bullet frame and it's not in our child list then
// we need to delete it ourselves (this is the common case for
// list-item's that have outside bullets).
@@ -431,6 +428,9 @@ nsBlockFrame::DeleteFrame(nsIPresContext& aPresContext)
mBullet = nsnull;
}
nsLineBox::DeleteLineList(aPresContext, mLines);
nsLineBox::DeleteLineList(aPresContext, mOverflowLines);
mFloaters.DeleteFrames(aPresContext);
return nsBlockFrameSuper::DeleteFrame(aPresContext);