Bug 1273766 - part3: purge NS_UpdateHint inline. r=heycam

MozReview-Commit-ID: IIOT9jq8hOl
This commit is contained in:
Jeremy Chen
2016-05-23 11:26:03 +08:00
parent 7f5f219f9b
commit e18b390d40
19 changed files with 134 additions and 143 deletions

View File

@@ -343,11 +343,11 @@ HTMLImageElement::GetAttributeChangeHint(const nsIAtom* aAttribute,
nsGenericHTMLElement::GetAttributeChangeHint(aAttribute, aModType);
if (aAttribute == nsGkAtoms::usemap ||
aAttribute == nsGkAtoms::ismap) {
NS_UpdateHint(retval, NS_STYLE_HINT_FRAMECHANGE);
retval |= NS_STYLE_HINT_FRAMECHANGE;
} else if (aAttribute == nsGkAtoms::alt) {
if (aModType == nsIDOMMutationEvent::ADDITION ||
aModType == nsIDOMMutationEvent::REMOVAL) {
NS_UpdateHint(retval, NS_STYLE_HINT_FRAMECHANGE);
retval |= NS_STYLE_HINT_FRAMECHANGE;
}
}
return retval;