Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -97,7 +97,7 @@ public:
|
||||
NS_IMETHOD Init(nsIContent* aContent,
|
||||
nsIFrame* aParent,
|
||||
nsIFrame* aPrevInFlow);
|
||||
NS_IMETHOD Destroy(nsPresContext* aPresContext);
|
||||
virtual void Destroy();
|
||||
|
||||
NS_IMETHOD AppendFrames(nsIAtom* aListName,
|
||||
nsIFrame* aFrameList);
|
||||
@@ -205,8 +205,8 @@ CanvasFrame::Init(nsIContent* aContent,
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
CanvasFrame::Destroy(nsPresContext* aPresContext)
|
||||
void
|
||||
CanvasFrame::Destroy()
|
||||
{
|
||||
nsIScrollableView* scrollingView = nsnull;
|
||||
mViewManager->GetRootScrollableView(&scrollingView);
|
||||
@@ -214,7 +214,7 @@ CanvasFrame::Destroy(nsPresContext* aPresContext)
|
||||
scrollingView->RemoveScrollPositionListener(this);
|
||||
}
|
||||
|
||||
return nsHTMLContainerFrame::Destroy(aPresContext);
|
||||
nsHTMLContainerFrame::Destroy();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@@ -333,7 +333,7 @@ CanvasFrame::RemoveFrame(nsIAtom* aListName,
|
||||
Invalidate(aOldFrame->GetOverflowRect() + aOldFrame->GetPosition(), PR_FALSE);
|
||||
|
||||
// Remove the frame and destroy it
|
||||
mFrames.DestroyFrame(GetPresContext(), aOldFrame);
|
||||
mFrames.DestroyFrame(aOldFrame);
|
||||
|
||||
// Generate a reflow command so we get reflowed
|
||||
rv = GetPresContext()->PresShell()->
|
||||
|
||||
Reference in New Issue
Block a user