Bug 895274 part.101 Rename NS_MUTATION_NODEREMOVED to eLegacyNodeRemoved r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 07 Sep 2015 23:55:51 +0900
changeset 293840 50a074c6f1e11e0ec19205f97f138927119de8dd
parent 293839 d643e9bbecbcc0e9a71752e6bb24c90572872b73
child 293841 ec25eda8de151b000251faa14b478822dade1d93
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs895274
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 895274 part.101 Rename NS_MUTATION_NODEREMOVED to eLegacyNodeRemoved r=smaug
dom/base/nsContentUtils.cpp
dom/events/EventListenerManager.cpp
dom/events/EventNameList.h
widget/EventMessageList.h
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
@@ -4080,17 +4080,17 @@ nsContentUtils::MaybeFireNodeRemoved(nsI
       NS_ERROR("Want to fire DOMNodeRemoved event, but it's not safe");
       WarnScriptWasIgnored(aOwnerDoc);
     }
     return;
   }
 
   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);
     EventDispatcher::Dispatch(aChild, nullptr, &mutation);
   }
 }
 
 void
--- a/dom/events/EventListenerManager.cpp
+++ b/dom/events/EventListenerManager.cpp
@@ -72,17 +72,17 @@ static const uint32_t kAllMutationBits =
 static uint32_t
 MutationBitForEventType(EventMessage aEventType)
 {
   switch (aEventType) {
     case eLegacySubtreeModified:
       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;
     case eLegacyNodeInsertedIntoDocument:
       return NS_EVENT_BITS_MUTATION_NODEINSERTEDINTODOCUMENT;
     case NS_MUTATION_ATTRMODIFIED:
       return NS_EVENT_BITS_MUTATION_ATTRMODIFIED;
     case eLegacyCharacterDataModified:
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -598,17 +598,17 @@ NON_IDL_EVENT(DOMCharacterDataModified,
               eLegacyCharacterDataModified,
               EventNameType_HTMLXUL,
               eMutationEventClass)
 NON_IDL_EVENT(DOMNodeInserted,
               eLegacyNodeInserted,
               EventNameType_HTMLXUL,
               eMutationEventClass)
 NON_IDL_EVENT(DOMNodeRemoved,
-              NS_MUTATION_NODEREMOVED,
+              eLegacyNodeRemoved,
               EventNameType_HTMLXUL,
               eMutationEventClass)
 NON_IDL_EVENT(DOMNodeInsertedIntoDocument,
               eLegacyNodeInsertedIntoDocument,
               EventNameType_HTMLXUL,
               eMutationEventClass)
 NON_IDL_EVENT(DOMNodeRemovedFromDocument,
               eLegacyNodeRemovedFromDocument,
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -130,17 +130,17 @@ NS_EVENT_MESSAGE(NS_MOUSE_PIXEL_SCROLL, 
 
 NS_EVENT_MESSAGE(NS_SCROLLPORT_START,     1700)
 NS_EVENT_MESSAGE(NS_SCROLLPORT_UNDERFLOW, NS_SCROLLPORT_START)
 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)
 NS_EVENT_MESSAGE(eLegacyCharacterDataModified,    eLegacyMutationEventFirst + 6)
 NS_EVENT_MESSAGE(NS_MUTATION_END,                 eLegacyCharacterDataModified)
 
 NS_EVENT_MESSAGE(NS_USER_DEFINED_EVENT, 2000)