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
Родитель 16ee81ed7f
Коммит a30885fc38
2 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -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;
}

Просмотреть файл

@ -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;
}