diff --git a/mozilla/content/html/content/src/nsHTMLInputElement.cpp b/mozilla/content/html/content/src/nsHTMLInputElement.cpp
index dc025180eb5..0c4e74a4a2b 100644
--- a/mozilla/content/html/content/src/nsHTMLInputElement.cpp
+++ b/mozilla/content/html/content/src/nsHTMLInputElement.cpp
@@ -679,7 +679,8 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const
{
- if (nsHTMLAtoms::checked == aAttribute) {
+ if (nsHTMLAtoms::checked == aAttribute ||
+ nsHTMLAtoms::value) {
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
} else {
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);
diff --git a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp
index dc025180eb5..0c4e74a4a2b 100644
--- a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp
+++ b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp
@@ -679,7 +679,8 @@ nsHTMLInputElement::GetStyleHintForAttributeChange(
const nsIAtom* aAttribute,
PRInt32 *aHint) const
{
- if (nsHTMLAtoms::checked == aAttribute) {
+ if (nsHTMLAtoms::checked == aAttribute ||
+ nsHTMLAtoms::value) {
*aHint = (nsnull != mWidget ? NS_STYLE_HINT_CONTENT : NS_STYLE_HINT_REFLOW);
} else {
nsGenericHTMLElement::SetStyleHintForCommonAttributes(aNode, aAttribute, aHint);