diff --git a/content/html/content/src/nsHTMLInputElement.cpp b/content/html/content/src/nsHTMLInputElement.cpp index 26673a536a54..27da4146ed17 100644 --- a/content/html/content/src/nsHTMLInputElement.cpp +++ b/content/html/content/src/nsHTMLInputElement.cpp @@ -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; } diff --git a/layout/html/content/src/nsHTMLInputElement.cpp b/layout/html/content/src/nsHTMLInputElement.cpp index 26673a536a54..27da4146ed17 100644 --- a/layout/html/content/src/nsHTMLInputElement.cpp +++ b/layout/html/content/src/nsHTMLInputElement.cpp @@ -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; }