зеркало из https://github.com/mozilla/gecko-dev.git
Added some temporary code to ensure that the floated frame is deleted
This commit is contained in:
Родитель
2689e545ed
Коммит
c347b9a308
|
@ -55,6 +55,17 @@ nsPlaceholderFrame::~nsPlaceholderFrame()
|
|||
{
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPlaceholderFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// XXX Delete the floated frame
|
||||
if (nsnull != mAnchoredItem) {
|
||||
mAnchoredItem->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
return nsFrame::DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPlaceholderFrame::Reflow(nsIPresContext& aPresContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize,
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
nsReflowStatus& aStatus);
|
||||
|
||||
// nsIFrame overrides
|
||||
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
|
||||
|
||||
NS_IMETHOD Paint(nsIPresContext& aPresContext,
|
||||
nsIRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect);
|
||||
|
|
|
@ -55,6 +55,17 @@ nsPlaceholderFrame::~nsPlaceholderFrame()
|
|||
{
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPlaceholderFrame::DeleteFrame(nsIPresContext& aPresContext)
|
||||
{
|
||||
// XXX Delete the floated frame
|
||||
if (nsnull != mAnchoredItem) {
|
||||
mAnchoredItem->DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
return nsFrame::DeleteFrame(aPresContext);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPlaceholderFrame::Reflow(nsIPresContext& aPresContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize,
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
nsReflowStatus& aStatus);
|
||||
|
||||
// nsIFrame overrides
|
||||
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
|
||||
|
||||
NS_IMETHOD Paint(nsIPresContext& aPresContext,
|
||||
nsIRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect);
|
||||
|
|
Загрузка…
Ссылка в новой задаче