зеркало из https://github.com/mozilla/pjs.git
Changing the alt or value attribute of an image input should change the text
shown when the image is broken. Bug 408782, r+sr=dbaron, a=schrep
This commit is contained in:
Родитель
5d394e8ba4
Коммит
d062bfb7a0
|
@ -2096,6 +2096,12 @@ nsHTMLInputElement::GetAttributeChangeHint(const nsIAtom* aAttribute,
|
|||
nsGenericHTMLFormElement::GetAttributeChangeHint(aAttribute, aModType);
|
||||
if (aAttribute == nsGkAtoms::type) {
|
||||
NS_UpdateHint(retval, NS_STYLE_HINT_FRAMECHANGE);
|
||||
} else if (mType == NS_FORM_INPUT_IMAGE &&
|
||||
(aAttribute == nsGkAtoms::alt ||
|
||||
aAttribute == nsGkAtoms::value)) {
|
||||
// We might need to rebuild our alt text. Just go ahead and
|
||||
// reconstruct our frame. This should be quite rare..
|
||||
NS_UpdateHint(retval, NS_STYLE_HINT_FRAMECHANGE);
|
||||
} else if (aAttribute == nsGkAtoms::value) {
|
||||
NS_UpdateHint(retval, NS_STYLE_HINT_REFLOW);
|
||||
} else if (aAttribute == nsGkAtoms::size &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче