bug 1270916 - switch to use the new mutation event queue system r=davidb

This puts events in the queue instead of the event tree, and then fires them
based on the queue.  Some tests need to be adjusted to make sure they check
constraints on event order correctly.
This commit is contained in:
Trevor Saunders
2016-11-11 00:23:27 -05:00
parent ac5183f872
commit 792e36e8c9
9 changed files with 52 additions and 54 deletions

View File

@@ -802,9 +802,9 @@ NotificationController::WillRefresh(mozilla::TimeStamp aTime)
// events causes script to run.
mObservingState = eRefreshProcessing;
RefPtr<DocAccessible> deathGrip(mDocument);
mEventTree.Process(deathGrip);
deathGrip = nullptr;
CoalesceMutationEvents();
ProcessMutationEvents();
mEventGeneration = 0;
// Now that we are done with them get rid of the events we fired.
RefPtr<AccTreeMutationEvent> mutEvent = Move(mFirstMutationEvent);