Enabling MULTIPLE attribute change for selects.

This commit is contained in:
pollmann%netscape.com 1999-05-19 00:59:06 +00:00
parent 11155af018
commit d5254251fc
2 changed files with 10 additions and 2 deletions

View File

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

View File

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