ported from UXP: Bug 1363481 - Add the old attribute value as a parameter to Element::AfterSetAttr (1f233fa1)

This commit is contained in:
2022-04-12 15:44:59 +08:00
parent 1e03c0bdaf
commit e0cd84d6f3
65 changed files with 352 additions and 161 deletions
+3 -2
View File
@@ -1345,7 +1345,8 @@ HTMLTextAreaElement::ContentChanged(nsIContent* aContent)
nsresult
HTMLTextAreaElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
const nsAttrValue* aValue, bool aNotify)
const nsAttrValue* aValue,
const nsAttrValue* aOldValue, bool aNotify)
{
if (aNameSpaceID == kNameSpaceID_None) {
if (aName == nsGkAtoms::required || aName == nsGkAtoms::disabled ||
@@ -1364,7 +1365,7 @@ HTMLTextAreaElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
}
return nsGenericHTMLFormElementWithState::AfterSetAttr(aNameSpaceID, aName, aValue,
aNotify);
aOldValue, aNotify);
}
nsresult