DeleteFrame() now takes a pres context.

git-svn-id: svn://10.0.0.236/trunk@8675 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
michaelp%netscape.com
1998-08-28 03:02:39 +00:00
parent b69cf1e950
commit 7b063335be
17 changed files with 60 additions and 42 deletions

View File

@@ -96,7 +96,7 @@ class ImageFrame : public ImageFrameSuper {
public:
ImageFrame(nsIContent* aContent, nsIFrame* aParentFrame);
NS_IMETHOD DeleteFrame();
NS_IMETHOD DeleteFrame(nsIPresContext& aPresContext);
NS_IMETHOD SizeOf(nsISizeOfHandler* aHandler) const;
NS_IMETHOD Paint(nsIPresContext& aPresContext,
nsIRenderingContext& aRenderingContext,
@@ -377,14 +377,14 @@ ImageFrame::~ImageFrame()
}
NS_METHOD
ImageFrame::DeleteFrame()
ImageFrame::DeleteFrame(nsIPresContext& aPresContext)
{
NS_IF_RELEASE(mImageMap);
// Release image loader first so that it's refcnt can go to zero
mImageLoader.DestroyLoader();
return nsLeafFrame::DeleteFrame();
return nsLeafFrame::DeleteFrame(aPresContext);
}
NS_IMETHODIMP