From 5a35e1faec941b02291b33d10cd2f516e0464f01 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Fri, 4 Apr 2025 21:39:38 +0200 Subject: constellation: Rename messages sent to the `Constellation` (#36341) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Messages that are sent to the `Constellation` have pretty ambiguous names. This change does two renames: - `ConstellationMsg` → `EmbedderToConstellationMessage` - `ScriptMsg` → `ScriptToConstellationMessage` This naming reflects that the `Constellation` stands in between the embedding layer and the script layer and can receive messages from both. Soon both of these message types will live in `constellation_traits`, reflecting the idea that the `_traits` variant for a crate is responsible for exposing the API for that crate. Testing: No new tests are necessary here as this just renames two enums. Signed-off-by: Martin Robinson Signed-off-by: Martin Robinson --- components/script/animations.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/script/animations.rs') 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 { -- cgit v1.2.3