Make textarea wrap="hard" not wrap text for restore/JS (only submit and edit). bug 74091, r=rods@netscape.com, sr=attinasi@netscape.com

This commit is contained in:
jkeiser@netscape.com
2002-05-16 18:26:05 +00:00
parent 2436f099d5
commit a197834969
15 changed files with 189 additions and 108 deletions

View File

@@ -632,7 +632,7 @@ NS_IMETHODIMP nsFileControlFrame::SetProperty(nsIPresContext* aPresContext,
nsresult rv = NS_OK;
if (nsHTMLAtoms::value == aName) {
if (mTextFrame) {
mTextFrame->SetTextControlFrameState(aValue);
mTextFrame->SetValue(aValue);
} else {
if (mCachedState) delete mCachedState;
mCachedState = new nsString(aValue);
@@ -648,7 +648,7 @@ NS_IMETHODIMP nsFileControlFrame::GetProperty(nsIAtom* aName, nsAString& aValue)
if (nsHTMLAtoms::value == aName) {
if (mTextFrame) {
mTextFrame->GetTextControlFrameState(aValue);
mTextFrame->GetValue(aValue, PR_FALSE);
}
else if (mCachedState) {
aValue.Assign(*mCachedState);