mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 895274 part.103 Rename NS_MUTATION_END to eLegacyMutationEventLast r=smaug
This commit is contained in:
parent
25e0050d19
commit
de2ad54f6b
@ -300,7 +300,7 @@ EventListenerManager::AddEventListenerInternal(
|
||||
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;
|
||||
@ -1227,7 +1227,7 @@ EventListenerManager::HasMutationListeners()
|
||||
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;
|
||||
}
|
||||
}
|
||||
@ -1245,7 +1245,7 @@ EventListenerManager::MutationListenerBits()
|
||||
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;
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ 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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user