Fixed a bug I created in GetStyleHintForAttributeChange

This commit is contained in:
rods%netscape.com 1998-12-17 16:38:43 +00:00
parent ccbf48c894
commit 3612ea4cf4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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