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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user