From 53c8b2569fbae45b8cf590e6fb7a149be55eb0fc Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Thu, 17 Dec 1998 15:27:01 +0000 Subject: [PATCH] Added processing hint for the "value" attribute git-svn-id: svn://10.0.0.236/trunk@16566 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsHTMLInputElement.cpp | 3 ++- mozilla/layout/html/content/src/nsHTMLInputElement.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);