moved the RegUnRegAccessKey to the Destroy method

b=47302 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@75430 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2000-08-02 22:12:11 +00:00
parent 5052d3645f
commit 389ee6e6a0
8 changed files with 34 additions and 4 deletions

View File

@@ -66,7 +66,13 @@ nsLegendFrame::nsLegendFrame()
nsLegendFrame::~nsLegendFrame()
{
nsFormControlFrame::RegUnRegAccessKey(mPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
}
NS_IMETHODIMP
nsLegendFrame::Destroy(nsIPresContext *aPresContext)
{
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
return nsAreaFrame::Destroy(aPresContext);
}
// Frames are not refcounted, no need to AddRef