aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/document.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index d8a01e68b4d..f636e11fc51 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -3852,6 +3852,18 @@ impl Document {
.update_for_new_timeline_value(&self.window, current_timeline_value);
}
+ pub(crate) fn maybe_mark_animating_nodes_as_dirty(&self) {
+ let current_timeline_value = self.current_animation_timeline_value();
+ let marked_dirty = self
+ .animations
+ .borrow()
+ .mark_animating_nodes_as_dirty(current_timeline_value);
+
+ if marked_dirty {
+ self.window().add_pending_reflow();
+ }
+ }
+
pub(crate) fn current_animation_timeline_value(&self) -> f64 {
self.animation_timeline.borrow().current_value()
}