mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
The "value" attribute should not be mapped into style. Bug 157210,
aptch by sicking, r=jst, sr=bzbarsky
This commit is contained in:
parent
316a8c0372
commit
3478b258bb
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user