Re-ordered DeleteFrame() code to fix a FMR

This commit is contained in:
troy%netscape.com 1999-02-10 18:12:24 +00:00
Родитель e06997130f
Коммит 37614be21a
6 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);