Added processing hint for the "value" attribute

git-svn-id: svn://10.0.0.236/trunk@16566 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1998-12-17 15:27:01 +00:00
parent 1de3312ae2
commit 53c8b2569f
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);