diff options
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 506cd5d6bf2..a82edd61cc3 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1705,11 +1705,11 @@ impl ScriptThread { // Perform step 11.10 from https://html.spec.whatwg.org/multipage/#event-loops. fn update_animations_and_send_events(&self) { for (_, document) in self.documents.borrow().iter() { - document.animations().send_pending_events(); + document.update_animation_timeline(); } for (_, document) in self.documents.borrow().iter() { - document.update_animation_timeline(); + document.animations().send_pending_events(); } } |