Changed nsIFrame member functions to return a nsresult

git-svn-id: svn://10.0.0.236/trunk@346 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy
1998-04-17 01:41:24 +00:00
parent 318aac7f83
commit fd68898ebd
100 changed files with 4538 additions and 2991 deletions

View File

@@ -81,7 +81,7 @@ void
nsInputTextFrame::PreInitializeWidget(nsIPresContext* aPresContext,
nsSize& aBounds)
{
nsInputText* content = (nsInputText *)GetContent(); // this must be an nsInputButton
nsInputText* content = (nsInputText *)mContent; // this must be an nsInputButton
// get the value of the text
if (nsnull != content->mValue) {
@@ -89,7 +89,6 @@ nsInputTextFrame::PreInitializeWidget(nsIPresContext* aPresContext,
} else {
mCacheValue = "";
}
NS_RELEASE(content);
float p2t = aPresContext->GetPixelsToTwips();
aBounds.width = (int)(120 * p2t);