зеркало из https://github.com/mozilla/pjs.git
Enabling MULTIPLE attribute change for selects.
This commit is contained in:
Родитель
53b70212da
Коммит
e720a8638b
|
@ -969,6 +969,10 @@ nsHTMLSelectElement::GetStyleHintForAttributeChange(
|
|||
const nsIAtom* aAttribute,
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
||||
if (nsHTMLAtoms::multiple == aAttribute) {
|
||||
*aHint = NS_STYLE_HINT_FRAMECHANGE;
|
||||
} else {
|
||||
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -969,6 +969,10 @@ nsHTMLSelectElement::GetStyleHintForAttributeChange(
|
|||
const nsIAtom* aAttribute,
|
||||
PRInt32 *aHint) const
|
||||
{
|
||||
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
||||
if (nsHTMLAtoms::multiple == aAttribute) {
|
||||
*aHint = NS_STYLE_HINT_FRAMECHANGE;
|
||||
} else {
|
||||
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче