Bug 895274 part.100 Rename NS_MUTATION_NODEINSERTED to eLegacyNodeInserted r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-07 23:55:51 +09:00
parent 5fb0380080
commit 1d327db10e
5 changed files with 5 additions and 5 deletions

View File

@ -1217,7 +1217,7 @@ FragmentOrElement::FireNodeInserted(nsIDocument* aDoc,
if (nsContentUtils::HasMutationListeners(childContent,
NS_EVENT_BITS_MUTATION_NODEINSERTED, aParent)) {
InternalMutationEvent mutation(true, NS_MUTATION_NODEINSERTED);
InternalMutationEvent mutation(true, eLegacyNodeInserted);
mutation.mRelatedNode = do_QueryInterface(aParent);
mozAutoSubtreeModified subtree(aDoc, aParent);

View File

@ -1610,7 +1610,7 @@ nsINode::doInsertChildAt(nsIContent* aKid, uint32_t aIndex,
if (nsContentUtils::HasMutationListeners(aKid,
NS_EVENT_BITS_MUTATION_NODEINSERTED, this)) {
InternalMutationEvent mutation(true, NS_MUTATION_NODEINSERTED);
InternalMutationEvent mutation(true, eLegacyNodeInserted);
mutation.mRelatedNode = do_QueryInterface(this);
mozAutoSubtreeModified subtree(OwnerDoc(), this);

View File

@ -75,7 +75,7 @@ MutationBitForEventType(EventMessage aEventType)
switch (aEventType) {
case eLegacySubtreeModified:
return NS_EVENT_BITS_MUTATION_SUBTREEMODIFIED;
case NS_MUTATION_NODEINSERTED:
case eLegacyNodeInserted:
return NS_EVENT_BITS_MUTATION_NODEINSERTED;
case NS_MUTATION_NODEREMOVED:
return NS_EVENT_BITS_MUTATION_NODEREMOVED;

View File

@ -599,7 +599,7 @@ NON_IDL_EVENT(DOMCharacterDataModified,
EventNameType_HTMLXUL,
eMutationEventClass)
NON_IDL_EVENT(DOMNodeInserted,
NS_MUTATION_NODEINSERTED,
eLegacyNodeInserted,
EventNameType_HTMLXUL,
eMutationEventClass)
NON_IDL_EVENT(DOMNodeRemoved,

View File

@ -134,7 +134,7 @@ NS_EVENT_MESSAGE(NS_SCROLLPORT_OVERFLOW, NS_SCROLLPORT_START + 1)
NS_EVENT_MESSAGE(eLegacyMutationEventFirst, 1800)
NS_EVENT_MESSAGE(eLegacySubtreeModified, eLegacyMutationEventFirst)
NS_EVENT_MESSAGE(NS_MUTATION_NODEINSERTED, eLegacyMutationEventFirst + 1)
NS_EVENT_MESSAGE(eLegacyNodeInserted, eLegacyMutationEventFirst + 1)
NS_EVENT_MESSAGE(NS_MUTATION_NODEREMOVED, eLegacyMutationEventFirst + 2)
NS_EVENT_MESSAGE(eLegacyNodeRemovedFromDocument, eLegacyMutationEventFirst + 3)
NS_EVENT_MESSAGE(eLegacyNodeInsertedIntoDocument, eLegacyMutationEventFirst + 4)