Bug 895274 part.103 Rename NS_MUTATION_END to eLegacyMutationEventLast r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 07 Sep 2015 23:55:51 +0900
changeset 293842 82aa99137da495953561777280da9d4e41554776
parent 293841 ec25eda8de151b000251faa14b478822dade1d93
child 293843 ca2ed2eb12c063168835797e989d8a2bab39fe04
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.103 Rename NS_MUTATION_END to eLegacyMutationEventLast r=smaug
dom/events/EventListenerManager.cpp
widget/EventMessageList.h
--- a/dom/events/EventListenerManager.cpp
+++ b/dom/events/EventListenerManager.cpp
@@ -295,17 +295,17 @@ EventListenerManager::AddEventListenerIn
 
   if (aEventMessage == NS_AFTERPAINT) {
     mMayHavePaintEventListener = true;
     nsPIDOMWindow* window = GetInnerWindowForTarget();
     if (window) {
       window->SetHasPaintEventListeners();
     }
   } else if (aEventMessage >= eLegacyMutationEventFirst &&
-             aEventMessage <= NS_MUTATION_END) {
+             aEventMessage <= eLegacyMutationEventLast) {
     // For mutation listeners, we need to update the global bit on the DOM window.
     // Otherwise we won't actually fire the mutation event.
     mMayHaveMutationListeners = true;
     // Go from our target to the nearest enclosing DOM window.
     nsPIDOMWindow* window = GetInnerWindowForTarget();
     if (window) {
       nsCOMPtr<nsIDocument> doc = window->GetExtantDoc();
       if (doc) {
@@ -1222,17 +1222,17 @@ EventListenerManager::RemoveListenerForA
 bool
 EventListenerManager::HasMutationListeners()
 {
   if (mMayHaveMutationListeners) {
     uint32_t count = mListeners.Length();
     for (uint32_t i = 0; i < count; ++i) {
       Listener* listener = &mListeners.ElementAt(i);
       if (listener->mEventMessage >= eLegacyMutationEventFirst &&
-          listener->mEventMessage <= NS_MUTATION_END) {
+          listener->mEventMessage <= eLegacyMutationEventLast) {
         return true;
       }
     }
   }
 
   return false;
 }
 
@@ -1240,17 +1240,17 @@ uint32_t
 EventListenerManager::MutationListenerBits()
 {
   uint32_t bits = 0;
   if (mMayHaveMutationListeners) {
     uint32_t count = mListeners.Length();
     for (uint32_t i = 0; i < count; ++i) {
       Listener* listener = &mListeners.ElementAt(i);
       if (listener->mEventMessage >= eLegacyMutationEventFirst &&
-          listener->mEventMessage <= NS_MUTATION_END) {
+          listener->mEventMessage <= eLegacyMutationEventLast) {
         if (listener->mEventMessage == eLegacySubtreeModified) {
           return kAllMutationBits;
         }
         bits |= MutationBitForEventType(listener->mEventMessage);
       }
     }
   }
   return bits;
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -135,17 +135,17 @@ NS_EVENT_MESSAGE(NS_SCROLLPORT_OVERFLOW,
 NS_EVENT_MESSAGE(eLegacyMutationEventFirst,       1800)
 NS_EVENT_MESSAGE(eLegacySubtreeModified,          eLegacyMutationEventFirst)
 NS_EVENT_MESSAGE(eLegacyNodeInserted,             eLegacyMutationEventFirst + 1)
 NS_EVENT_MESSAGE(eLegacyNodeRemoved,              eLegacyMutationEventFirst + 2)
 NS_EVENT_MESSAGE(eLegacyNodeRemovedFromDocument,  eLegacyMutationEventFirst + 3)
 NS_EVENT_MESSAGE(eLegacyNodeInsertedIntoDocument, eLegacyMutationEventFirst + 4)
 NS_EVENT_MESSAGE(eLegacyAttrModified,             eLegacyMutationEventFirst + 5)
 NS_EVENT_MESSAGE(eLegacyCharacterDataModified,    eLegacyMutationEventFirst + 6)
-NS_EVENT_MESSAGE(NS_MUTATION_END,                 eLegacyCharacterDataModified)
+NS_EVENT_MESSAGE(eLegacyMutationEventLast,        eLegacyCharacterDataModified)
 
 NS_EVENT_MESSAGE(NS_USER_DEFINED_EVENT, 2000)
  
 // composition events
 NS_EVENT_MESSAGE(NS_COMPOSITION_EVENT_START,  2200)
 NS_EVENT_MESSAGE(NS_COMPOSITION_START,        NS_COMPOSITION_EVENT_START)
 // NS_COMPOSITION_END is the message for DOM compositionend event.
 // This event should NOT be dispatched from widget if NS_COMPOSITION_COMMIT