Bug 1519185: Remove AttributeWillChange aNewValue parameter r=emilio,bzbarsky

Differential Revision: https://phabricator.services.mozilla.com/D17073
This commit is contained in:
garvitdelhi
2019-01-29 15:27:02 +00:00
committed by Emilio Cobos Álvarez
parent ef8b62c773
commit cdc6f539cb
15 changed files with 26 additions and 43 deletions

View File

@@ -4262,8 +4262,7 @@ void PresShell::DocumentStatesChanged(Document* aDocument,
}
void PresShell::AttributeWillChange(Element* aElement, int32_t aNameSpaceID,
nsAtom* aAttribute, int32_t aModType,
const nsAttrValue* aNewValue) {
nsAtom* aAttribute, int32_t aModType) {
MOZ_ASSERT(!mIsDocumentGone, "Unexpected AttributeWillChange");
MOZ_ASSERT(aElement->OwnerDoc() == mDocument, "Unexpected document");
@@ -4272,8 +4271,8 @@ void PresShell::AttributeWillChange(Element* aElement, int32_t aNameSpaceID,
// squelch any other inappropriate notifications as well.
if (mDidInitialize) {
nsAutoCauseReflowNotifier crNotifier(this);
mPresContext->RestyleManager()->AttributeWillChange(
aElement, aNameSpaceID, aAttribute, aModType, aNewValue);
mPresContext->RestyleManager()->AttributeWillChange(aElement, aNameSpaceID,
aAttribute, aModType);
}
}