Bug 895274 part.99 Rename NS_MUTATION_SUBTREEMODIFIED to eLegacySubtreeModified r=smaug

This commit is contained in:
Masayuki Nakano 2015-09-07 23:55:51 +09:00
Родитель 0cff7052de
Коммит 26cb9fd5f6
4 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -9436,7 +9436,7 @@ nsDocument::MutationEventDispatched(nsINode* aTarget)
int32_t realTargetCount = realTargets.Count();
for (int32_t k = 0; k < realTargetCount; ++k) {
InternalMutationEvent mutation(true, NS_MUTATION_SUBTREEMODIFIED);
InternalMutationEvent mutation(true, eLegacySubtreeModified);
(new AsyncEventDispatcher(realTargets[k], mutation))->
RunDOMEventWhenSafe();
}

Просмотреть файл

@ -73,7 +73,7 @@ static uint32_t
MutationBitForEventType(EventMessage aEventType)
{
switch (aEventType) {
case NS_MUTATION_SUBTREEMODIFIED:
case eLegacySubtreeModified:
return NS_EVENT_BITS_MUTATION_SUBTREEMODIFIED;
case NS_MUTATION_NODEINSERTED:
return NS_EVENT_BITS_MUTATION_NODEINSERTED;
@ -311,10 +311,10 @@ EventListenerManager::AddEventListenerInternal(
if (doc) {
doc->WarnOnceAbout(nsIDocument::eMutationEvent);
}
// If aEventMessage is NS_MUTATION_SUBTREEMODIFIED, we need to listen all
// If aEventMessage is eLegacySubtreeModified, we need to listen all
// mutations. nsContentUtils::HasMutationListeners relies on this.
window->SetMutationListeners(
(aEventMessage == NS_MUTATION_SUBTREEMODIFIED) ?
(aEventMessage == eLegacySubtreeModified) ?
kAllMutationBits : MutationBitForEventType(aEventMessage));
}
} else if (aTypeAtom == nsGkAtoms::ondeviceorientation) {
@ -1246,7 +1246,7 @@ EventListenerManager::MutationListenerBits()
Listener* listener = &mListeners.ElementAt(i);
if (listener->mEventMessage >= eLegacyMutationEventFirst &&
listener->mEventMessage <= NS_MUTATION_END) {
if (listener->mEventMessage == NS_MUTATION_SUBTREEMODIFIED) {
if (listener->mEventMessage == eLegacySubtreeModified) {
return kAllMutationBits;
}
bits |= MutationBitForEventType(listener->mEventMessage);

Просмотреть файл

@ -615,7 +615,7 @@ NON_IDL_EVENT(DOMNodeRemovedFromDocument,
EventNameType_HTMLXUL,
eMutationEventClass)
NON_IDL_EVENT(DOMSubtreeModified,
NS_MUTATION_SUBTREEMODIFIED,
eLegacySubtreeModified,
EventNameType_HTMLXUL,
eMutationEventClass)

Просмотреть файл

@ -133,7 +133,7 @@ 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(NS_MUTATION_SUBTREEMODIFIED, eLegacyMutationEventFirst)
NS_EVENT_MESSAGE(eLegacySubtreeModified, eLegacyMutationEventFirst)
NS_EVENT_MESSAGE(NS_MUTATION_NODEINSERTED, eLegacyMutationEventFirst + 1)
NS_EVENT_MESSAGE(NS_MUTATION_NODEREMOVED, eLegacyMutationEventFirst + 2)
NS_EVENT_MESSAGE(eLegacyNodeRemovedFromDocument, eLegacyMutationEventFirst + 3)