Move logic in nsHTMLFrameInnerFrame's destroy to nsHTMLFrameInnerFrame:Destroy so its contents are destroyed *before* nsHTMLFrameInnerFrame is destroyed. bug=66748 r=jkeiser@netscape.com sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121235 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user