Changed nsIFrame member functions to return a nsresult

This commit is contained in:
troy
1998-04-17 01:41:24 +00:00
parent 81c4b95c56
commit 13419330e6
100 changed files with 4538 additions and 2991 deletions

View File

@@ -274,7 +274,7 @@ nsInputButtonFrame::~nsInputButtonFrame()
void
nsInputButtonFrame::MouseClicked()
{
nsInputButton* button = (nsInputButton *) GetContent();
nsInputButton* button = (nsInputButton *)mContent;
nsIFormManager* formMan = button->GetFormManager();
if (nsnull != formMan) {
if (kInputButtonReset == button->GetButtonType()) {
@@ -284,7 +284,6 @@ nsInputButtonFrame::MouseClicked()
}
NS_RELEASE(formMan);
}
NS_RELEASE(button);
}
@@ -293,10 +292,9 @@ nsInputButtonFrame::PreInitializeWidget(nsIPresContext* aPresContext, nsSize& aB
{
float p2t = aPresContext->GetPixelsToTwips();
nsInputButton* content = (nsInputButton *)GetContent(); // this must be an nsInputButton
nsIStyleContext* styleContext = GetStyleContext(aPresContext);
nsInputButton* content = (nsInputButton *)mContent; // this must be an nsInputButton
// should this be the parent
nsStyleFont* styleFont = (nsStyleFont*)styleContext->GetData(kStyleFontSID);
nsStyleFont* styleFont = (nsStyleFont*)mStyleContext->GetData(kStyleFontSID);
nsIDeviceContext* deviceContext = aPresContext->GetDeviceContext();
nsIFontCache* fontCache = deviceContext->GetFontCache();
@@ -321,8 +319,6 @@ nsInputButtonFrame::PreInitializeWidget(nsIPresContext* aPresContext, nsSize& aB
NS_RELEASE(fontMet);
NS_RELEASE(fontCache);
NS_RELEASE(deviceContext);
NS_RELEASE(styleContext);
NS_RELEASE(content);
}