The "value" attribute should not be mapped into style. Bug 157210,

aptch by sicking, r=jst, sr=bzbarsky
This commit is contained in:
bzbarsky%mit.edu 2002-11-06 03:47:55 +00:00
parent 316a8c0372
commit 3478b258bb

View File

@ -1907,7 +1907,14 @@ nsHTMLInputElement::GetMappedAttributeImpact(const nsIAtom* aAttribute, PRInt32
nsChangeHint& aHint) const
{
if (aAttribute == nsHTMLAtoms::value) {
aHint = NS_STYLE_HINT_REFLOW;
if (mType == NS_FORM_INPUT_BUTTON ||
mType == NS_FORM_INPUT_RESET ||
mType == NS_FORM_INPUT_SUBMIT) {
aHint = NS_STYLE_HINT_CONTENT;
}
else {
aHint = NS_STYLE_HINT_ATTRCHANGE;
}
}
else if ((aAttribute == nsHTMLAtoms::align) ||
(aAttribute == nsHTMLAtoms::type)) {