Skip to content

Commit 0025f87

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Adding subtree parameter to Element.prototype.getAnimations.
PiperOrigin-RevId: 735435442
1 parent 48ff382 commit 0025f87

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

externs/browser/web_animations.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
Element.prototype.animate = function(frames, options) {};
3333

3434
/**
35+
* @param {GetAnimationsOptions=} options
3536
* @return {!Array<!Animation>}
37+
* @see https://www.w3.org/TR/web-animations/#dom-animatable-getanimations
3638
*/
37-
Element.prototype.getAnimations = function() {};
39+
Element.prototype.getAnimations = function(options) {};
3840

3941
/**
4042
* @return {!Array<!Animation>}
@@ -438,3 +440,13 @@ GroupEffect.prototype.timing;
438440

439441
/** @type {!Array<!AnimationEffect>} */
440442
GroupEffect.prototype.children;
443+
444+
445+
/**
446+
* @record
447+
* @see https://www.w3.org/TR/web-animations/#dom-animatable-getanimations
448+
*/
449+
var GetAnimationsOptions = function() {};
450+
451+
/** @type {(undefined|boolean)} */
452+
GetAnimationsOptions.prototype.subtree;

0 commit comments

Comments
 (0)