Give nsTextControlFrame a notification when readonly on a TextArea is changed.

This commit is contained in:
pollmann@netscape.com
1999-03-03 03:05:31 +00:00
parent d60c62eb9e
commit 048adfc344
2 changed files with 10 additions and 2 deletions
@@ -478,6 +478,10 @@ nsHTMLTextAreaElement::GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const
{
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
if (nsHTMLAtoms::readonly == aAttribute) {
*aHint = NS_STYLE_HINT_CONTENT;
} else {
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
}
return NS_OK;
}