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

git-svn-id: svn://10.0.0.236/trunk@22681 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com 1999-03-03 03:05:31 +00:00
parent 7692e0c4c1
commit 4642b85847
2 changed files with 10 additions and 2 deletions

View File

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

View File

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