Bug 895274 part.103 Rename NS_MUTATION_END to eLegacyMutationEventLast r=smaug

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

View File

@ -300,7 +300,7 @@ EventListenerManager::AddEventListenerInternal(
window->SetHasPaintEventListeners(); window->SetHasPaintEventListeners();
} }
} else if (aEventMessage >= eLegacyMutationEventFirst && } else if (aEventMessage >= eLegacyMutationEventFirst &&
aEventMessage <= NS_MUTATION_END) { aEventMessage <= eLegacyMutationEventLast) {
// For mutation listeners, we need to update the global bit on the DOM window. // For mutation listeners, we need to update the global bit on the DOM window.
// Otherwise we won't actually fire the mutation event. // Otherwise we won't actually fire the mutation event.
mMayHaveMutationListeners = true; mMayHaveMutationListeners = true;
@ -1227,7 +1227,7 @@ EventListenerManager::HasMutationListeners()
for (uint32_t i = 0; i < count; ++i) { for (uint32_t i = 0; i < count; ++i) {
Listener* listener = &mListeners.ElementAt(i); Listener* listener = &mListeners.ElementAt(i);
if (listener->mEventMessage >= eLegacyMutationEventFirst && if (listener->mEventMessage >= eLegacyMutationEventFirst &&
listener->mEventMessage <= NS_MUTATION_END) { listener->mEventMessage <= eLegacyMutationEventLast) {
return true; return true;
} }
} }
@ -1245,7 +1245,7 @@ EventListenerManager::MutationListenerBits()
for (uint32_t i = 0; i < count; ++i) { for (uint32_t i = 0; i < count; ++i) {
Listener* listener = &mListeners.ElementAt(i); Listener* listener = &mListeners.ElementAt(i);
if (listener->mEventMessage >= eLegacyMutationEventFirst && if (listener->mEventMessage >= eLegacyMutationEventFirst &&
listener->mEventMessage <= NS_MUTATION_END) { listener->mEventMessage <= eLegacyMutationEventLast) {
if (listener->mEventMessage == eLegacySubtreeModified) { if (listener->mEventMessage == eLegacySubtreeModified) {
return kAllMutationBits; return kAllMutationBits;
} }

View File

@ -140,7 +140,7 @@ NS_EVENT_MESSAGE(eLegacyNodeRemovedFromDocument, eLegacyMutationEventFirst + 3)
NS_EVENT_MESSAGE(eLegacyNodeInsertedIntoDocument, eLegacyMutationEventFirst + 4) NS_EVENT_MESSAGE(eLegacyNodeInsertedIntoDocument, eLegacyMutationEventFirst + 4)
NS_EVENT_MESSAGE(eLegacyAttrModified, eLegacyMutationEventFirst + 5) NS_EVENT_MESSAGE(eLegacyAttrModified, eLegacyMutationEventFirst + 5)
NS_EVENT_MESSAGE(eLegacyCharacterDataModified, eLegacyMutationEventFirst + 6) 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) NS_EVENT_MESSAGE(NS_USER_DEFINED_EVENT, 2000)