mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Enable dynamic changing of the readonly attribute.
Works on Linux now. Win will come on-line later today.
This commit is contained in:
parent
08e5ad61d6
commit
6dcb7e30da
@ -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...
|
||||
|
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user