diff --git a/mozilla/layout/generic/nsFrameFrame.cpp b/mozilla/layout/generic/nsFrameFrame.cpp index 72ece605648..e810ea621ca 100644 --- a/mozilla/layout/generic/nsFrameFrame.cpp +++ b/mozilla/layout/generic/nsFrameFrame.cpp @@ -210,6 +210,8 @@ public: NS_IMETHOD GetFrameType(nsIAtom** aType) const; + NS_IMETHOD Destroy(nsIPresContext* aPresContext); + /** * @see nsIFrame::Paint */ @@ -254,8 +256,6 @@ protected: nsresult CreateViewAndWidget(nsIPresContext* aPresContext, nsIWidget** aWidget); - virtual ~nsHTMLFrameInnerFrame(); - virtual void GetDesiredSize(nsIPresContext* aPresContext, const nsHTMLReflowState& aReflowState, nsHTMLReflowMetrics& aDesiredSize); @@ -693,7 +693,8 @@ nsHTMLFrameInnerFrame::nsHTMLFrameInnerFrame() { } -nsHTMLFrameInnerFrame::~nsHTMLFrameInnerFrame() +NS_IMETHODIMP +nsHTMLFrameInnerFrame::Destroy(nsIPresContext* aPresContext) { if (mFrameLoader) { // Get the content viewer through the docshell, but don't call @@ -721,6 +722,8 @@ nsHTMLFrameInnerFrame::~nsHTMLFrameInnerFrame() mFrameLoader->Destroy(); } + + return nsLeafFrame::Destroy(aPresContext); } PRBool nsHTMLFrameInnerFrame::GetURL(nsIContent* aContent, nsString& aResult) diff --git a/mozilla/layout/html/document/src/nsFrameFrame.cpp b/mozilla/layout/html/document/src/nsFrameFrame.cpp index 72ece605648..e810ea621ca 100644 --- a/mozilla/layout/html/document/src/nsFrameFrame.cpp +++ b/mozilla/layout/html/document/src/nsFrameFrame.cpp @@ -210,6 +210,8 @@ public: NS_IMETHOD GetFrameType(nsIAtom** aType) const; + NS_IMETHOD Destroy(nsIPresContext* aPresContext); + /** * @see nsIFrame::Paint */ @@ -254,8 +256,6 @@ protected: nsresult CreateViewAndWidget(nsIPresContext* aPresContext, nsIWidget** aWidget); - virtual ~nsHTMLFrameInnerFrame(); - virtual void GetDesiredSize(nsIPresContext* aPresContext, const nsHTMLReflowState& aReflowState, nsHTMLReflowMetrics& aDesiredSize); @@ -693,7 +693,8 @@ nsHTMLFrameInnerFrame::nsHTMLFrameInnerFrame() { } -nsHTMLFrameInnerFrame::~nsHTMLFrameInnerFrame() +NS_IMETHODIMP +nsHTMLFrameInnerFrame::Destroy(nsIPresContext* aPresContext) { if (mFrameLoader) { // Get the content viewer through the docshell, but don't call @@ -721,6 +722,8 @@ nsHTMLFrameInnerFrame::~nsHTMLFrameInnerFrame() mFrameLoader->Destroy(); } + + return nsLeafFrame::Destroy(aPresContext); } PRBool nsHTMLFrameInnerFrame::GetURL(nsIContent* aContent, nsString& aResult)