mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Cancel animations for nodes which are removed from the DOM
This includes nodes which are being reparented.
This commit is contained in:
parent
6d9b2eef29
commit
e901fa2c39
8 changed files with 32 additions and 31 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue