Bug 17431: Clean house in form and form control destructors to allow reframing r=harishd a=choffman

git-svn-id: svn://10.0.0.236/trunk@52822 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
1999-11-04 23:16:47 +00:00
parent d76ff386a5
commit b98eecf039
18 changed files with 91 additions and 14 deletions

View File

@@ -80,6 +80,14 @@ nsHTMLButtonControlFrame::nsHTMLButtonControlFrame()
mRenderer.SetNameSpace(kNameSpaceID_None);
}
nsHTMLButtonControlFrame::~nsHTMLButtonControlFrame()
{
if (mFormFrame) {
mFormFrame->RemoveFormControlFrame(*this);
mFormFrame = nsnull;
}
}
NS_IMETHODIMP
nsHTMLButtonControlFrame::Init(nsIPresContext& aPresContext,
nsIContent* aContent,