Enabling SIZE attribute change for selects.

This commit is contained in:
pollmann%netscape.com 1999-05-19 01:03:02 +00:00
parent d5254251fc
commit 649f177e75
2 changed files with 4 additions and 0 deletions

View File

@ -971,6 +971,8 @@ nsHTMLSelectElement::GetStyleHintForAttributeChange(
{
if (nsHTMLAtoms::multiple == aAttribute) {
*aHint = NS_STYLE_HINT_FRAMECHANGE;
} else if (nsHTMLAtoms::size == aAttribute) {
*aHint = NS_STYLE_HINT_REFLOW;
} else {
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
}

View File

@ -971,6 +971,8 @@ nsHTMLSelectElement::GetStyleHintForAttributeChange(
{
if (nsHTMLAtoms::multiple == aAttribute) {
*aHint = NS_STYLE_HINT_FRAMECHANGE;
} else if (nsHTMLAtoms::size == aAttribute) {
*aHint = NS_STYLE_HINT_REFLOW;
} else {
nsGenericHTMLElement::GetStyleHintForCommonAttributes(this, aAttribute, aHint);
}