diff --git a/content/html/content/src/nsHTMLInputElement.cpp b/content/html/content/src/nsHTMLInputElement.cpp index 0c4e74a4a2b2..f619caf330f1 100644 --- a/content/html/content/src/nsHTMLInputElement.cpp +++ b/content/html/content/src/nsHTMLInputElement.cpp @@ -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); diff --git a/layout/html/content/src/nsHTMLInputElement.cpp b/layout/html/content/src/nsHTMLInputElement.cpp index 0c4e74a4a2b2..f619caf330f1 100644 --- a/layout/html/content/src/nsHTMLInputElement.cpp +++ b/layout/html/content/src/nsHTMLInputElement.cpp @@ -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);