Enable dynamic changing of the readonly attribute.

Works on Linux now.  Win will come on-line later today.


git-svn-id: svn://10.0.0.236/trunk@22207 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
1999-02-26 20:01:48 +00:00
parent 02a2298c97
commit 9c4f03aa39
2 changed files with 6 additions and 0 deletions

View File

@@ -400,6 +400,9 @@ nsTextControlFrame::AttributeChanged(nsIPresContext* aPresContext,
if (NS_CONTENT_ATTR_NOT_THERE != rv) {
text->SetMaxTextLength(maxLength);
}
} else if ((nsHTMLAtoms::readonly == aAttribute) && (nsnull != text)) {
PRBool oldReadOnly;
text->SetReadOnly(nsFormFrame::GetReadonly(this),oldReadOnly);
}
// Allow the base class to handle common attributes supported
// by all form elements...