Added better default processing of hint

This commit is contained in:
rods%netscape.com 1998-12-21 13:29:32 +00:00
Родитель 66066e1f3c
Коммит cdc4c9ba17
2 изменённых файлов: 4 добавлений и 12 удалений

Просмотреть файл

@ -678,11 +678,7 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const
{
if (nsHTMLAtoms::checked == aAttribute ||
nsHTMLAtoms::value == aAttribute) {
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
} else {
nsGenericHTMLElement::SetStyleHintForCommonAttributes(this, aAttribute, aHint);
}
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
return NS_OK;
}

Просмотреть файл

@ -678,11 +678,7 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const
{
if (nsHTMLAtoms::checked == aAttribute ||
nsHTMLAtoms::value == aAttribute) {
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
} else {
nsGenericHTMLElement::SetStyleHintForCommonAttributes(this, aAttribute, aHint);
}
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
return NS_OK;
}