зеркало из https://github.com/mozilla/gecko-dev.git
Re-ordered DeleteFrame() code to fix a FMR
This commit is contained in:
Родитель
e06997130f
Коммит
37614be21a
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче