Bug 1407375. Make sure to call NodeInfoChanged whenever we change the nodeinfo on a node. r=peterv

MozReview-Commit-ID: 71k1jv8thFA
This commit is contained in:
Boris Zbarsky 2017-10-11 22:19:06 -04:00
parent f4bf415086
commit 1475bf4ce5

View File

@ -616,6 +616,9 @@ nsNodeUtils::CloneAndAdopt(nsINode *aNode, bool aClone, bool aDeep,
aNode->OwnerDoc()->UnregisterActivityObserver(aNode->AsElement());
}
aNode->mNodeInfo.swap(newNodeInfo);
if (elem) {
elem->NodeInfoChanged(newDoc);
}
if (wasRegistered) {
aNode->OwnerDoc()->RegisterActivityObserver(aNode->AsElement());
}