зеркало из https://github.com/mozilla/pjs.git
Give nsTextControlFrame a notification when readonly on a TextArea is changed.
This commit is contained in:
Родитель
16ee81ed7f
Коммит
a30885fc38
|
@ -478,6 +478,10 @@ nsHTMLTextAreaElement::GetStyleHintForAttributeChange(
|
|||
const nsIAtom* aAttribute,
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
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
|
||||
{
|
||||
if (nsHTMLAtoms::readonly == aAttribute) {
|
||||
*aHint = NS_STYLE_HINT_CONTENT;
|
||||
} else {
|
||||
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче