Bug 1520745: Remove unused getAllAnimations function. r=pbro

Differential Revision: https://phabricator.services.mozilla.com/D21640

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Daisuke Akatsuka 2019-03-04 08:47:47 +00:00
Родитель 4554fd728d
Коммит d37327cfb2
1 изменённых файлов: 0 добавлений и 21 удалений

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

@ -692,27 +692,6 @@ exports.AnimationsActor = protocol.ActorClassWithSpec(animationsSpec, {
}
},
/**
* Iterates through all nodes below a given rootNode (optionally also in
* nested frames) and finds all existing animation players.
* @param {DOMNode} rootNode The root node to start iterating at. Animation
* players will *not* be reported for this node.
* @param {Boolean} traverseFrames Whether we should iterate through nested
* frames too.
* @return {Array} An array of AnimationPlayer objects.
*/
getAllAnimations: function(rootNode, traverseFrames) {
if (!traverseFrames) {
return rootNode.getAnimations({subtree: true});
}
let animations = [];
for (const {document} of this.targetActor.windows) {
animations = [...animations, ...document.getAnimations({subtree: true})];
}
return animations;
},
onWillNavigate: function({isTopLevel}) {
if (isTopLevel) {
this.stopAnimationPlayerUpdates();