diff options
author | Martin Robinson <mrobinson@igalia.com> | 2020-06-09 11:39:43 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2020-06-17 16:35:06 +0200 |
commit | e901fa2c39bc930201f5e251bb65e276a846634c (patch) | |
tree | 541e31dd3616ba4cc65c8a903fb1f2aade4550d0 /components/script/dom/document.rs | |
parent | 6d9b2eef296fe3281fc098a5ea238c8053c3f893 (diff) | |
download | servo-e901fa2c39bc930201f5e251bb65e276a846634c.tar.gz servo-e901fa2c39bc930201f5e251bb65e276a846634c.zip |
Cancel animations for nodes which are removed from the DOM
This includes nodes which are being reparented.
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 { |