From 3d20da4b17f258c26027dbf4eaf0ffe1d85437ea Mon Sep 17 00:00:00 2001 From: "rods@netscape.com" Date: Thu, 17 Dec 1998 16:38:43 +0000 Subject: [PATCH] Fixed a bug I created in GetStyleHintForAttributeChange --- content/html/content/src/nsHTMLInputElement.cpp | 2 +- layout/html/content/src/nsHTMLInputElement.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);