diff options
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 1d0aabc3d51..1092a070837 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -3855,6 +3855,10 @@ impl Document { .borrow() .do_post_reflow_update(&self.window, self.current_animation_timeline_value()); } + + pub(crate) fn cancel_animations_for_node(&self, node: &Node) { + self.animations.borrow().cancel_animations_for_node(node); + } } impl Element { |