mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00

In bug 1195180 we plan to tick animations from their timeline where they are stored in a hashtable. As a result, we will not visit them in order of their associated target element (indeed, part of the reason we are doing this is to support animations that do not have, or even have multiple target elements). The current animation mutation observer batching mechanism, however, assumes that we visit each target element in turn and make all the necessary work at once. In order to support visiting animations in a potentially random order this patch reworks the animation mutation observer batching mechanism so that it can support batching multiple elements at once.