TextAreas now initialize their content area using default text specified in

the HTML File.
This commit is contained in:
kmcclusk%netscape.com 1999-02-01 23:49:21 +00:00
parent 034a3ff9b8
commit d71b7f88d5
2 changed files with 2 additions and 0 deletions

View File

@ -474,6 +474,7 @@ nsTextControlFrame::PostCreateWidget(nsIPresContext* aPresContext,
}
NS_RELEASE(text);
} else if (NS_OK == mWidget->QueryInterface(kITextAreaWidgetIID,(void**)&textArea)) {
GetText(&value, PR_TRUE);
textArea->SetText(value, ignore);
NS_RELEASE(textArea);
}

View File

@ -474,6 +474,7 @@ nsTextControlFrame::PostCreateWidget(nsIPresContext* aPresContext,
}
NS_RELEASE(text);
} else if (NS_OK == mWidget->QueryInterface(kITextAreaWidgetIID,(void**)&textArea)) {
GetText(&value, PR_TRUE);
textArea->SetText(value, ignore);
NS_RELEASE(textArea);
}