Bug 895274 part.101 Rename NS_MUTATION_NODEREMOVED to eLegacyNodeRemoved r=smaug

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

View File

@ -4085,7 +4085,7 @@ nsContentUtils::MaybeFireNodeRemoved(nsINode* aChild, nsINode* aParent,
if (HasMutationListeners(aChild,
NS_EVENT_BITS_MUTATION_NODEREMOVED, aParent)) {
InternalMutationEvent mutation(true, NS_MUTATION_NODEREMOVED);
InternalMutationEvent mutation(true, eLegacyNodeRemoved);
mutation.mRelatedNode = do_QueryInterface(aParent);
mozAutoSubtreeModified subtree(aOwnerDoc, aParent);

View File

@ -77,7 +77,7 @@ MutationBitForEventType(EventMessage aEventType)
return NS_EVENT_BITS_MUTATION_SUBTREEMODIFIED;
case eLegacyNodeInserted:
return NS_EVENT_BITS_MUTATION_NODEINSERTED;
case NS_MUTATION_NODEREMOVED:
case eLegacyNodeRemoved:
return NS_EVENT_BITS_MUTATION_NODEREMOVED;
case eLegacyNodeRemovedFromDocument:
return NS_EVENT_BITS_MUTATION_NODEREMOVEDFROMDOCUMENT;

View File

@ -603,7 +603,7 @@ NON_IDL_EVENT(DOMNodeInserted,
EventNameType_HTMLXUL,
eMutationEventClass)
NON_IDL_EVENT(DOMNodeRemoved,
NS_MUTATION_NODEREMOVED,
eLegacyNodeRemoved,
EventNameType_HTMLXUL,
eMutationEventClass)
NON_IDL_EVENT(DOMNodeInsertedIntoDocument,

View File

@ -135,7 +135,7 @@ NS_EVENT_MESSAGE(NS_SCROLLPORT_OVERFLOW, NS_SCROLLPORT_START + 1)
NS_EVENT_MESSAGE(eLegacyMutationEventFirst, 1800)
NS_EVENT_MESSAGE(eLegacySubtreeModified, eLegacyMutationEventFirst)
NS_EVENT_MESSAGE(eLegacyNodeInserted, eLegacyMutationEventFirst + 1)
NS_EVENT_MESSAGE(NS_MUTATION_NODEREMOVED, eLegacyMutationEventFirst + 2)
NS_EVENT_MESSAGE(eLegacyNodeRemoved, eLegacyMutationEventFirst + 2)
NS_EVENT_MESSAGE(eLegacyNodeRemovedFromDocument, eLegacyMutationEventFirst + 3)
NS_EVENT_MESSAGE(eLegacyNodeInsertedIntoDocument, eLegacyMutationEventFirst + 4)
NS_EVENT_MESSAGE(NS_MUTATION_ATTRMODIFIED, eLegacyMutationEventFirst + 5)