aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/animations.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/animations.rs')
-rw-r--r--components/script/animations.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/animations.rs b/components/script/animations.rs
index e62986a70b6..464dc759cdc 100644
--- a/components/script/animations.rs
+++ b/components/script/animations.rs
@@ -11,7 +11,7 @@ use constellation_traits::UntrustedNodeAddress;
use cssparser::ToCss;
use fxhash::{FxHashMap, FxHashSet};
use libc::c_void;
-use script_traits::{AnimationState as AnimationsPresentState, ScriptMsg};
+use script_traits::{AnimationState as AnimationsPresentState, ScriptToConstellationMessage};
use serde::{Deserialize, Serialize};
use style::animation::{
Animation, AnimationSetKey, AnimationState, DocumentAnimationSet, ElementAnimationSet,
@@ -186,7 +186,9 @@ impl Animations {
true => AnimationsPresentState::AnimationsPresent,
false => AnimationsPresentState::NoAnimationsPresent,
};
- window.send_to_constellation(ScriptMsg::ChangeRunningAnimationsState(state));
+ window.send_to_constellation(ScriptToConstellationMessage::ChangeRunningAnimationsState(
+ state,
+ ));
}
pub(crate) fn running_animation_count(&self) -> usize {