aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/messaging.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-04-04 21:39:38 +0200
committerGitHub <noreply@github.com>2025-04-04 19:39:38 +0000
commit5a35e1faec941b02291b33d10cd2f516e0464f01 (patch)
treee055335fd519e867079e3e6cfe9e2a620b182060 /components/script/messaging.rs
parentc7a7862574b4fca62bed35d958f0f363f0b6ab3f (diff)
downloadservo-5a35e1faec941b02291b33d10cd2f516e0464f01.tar.gz
servo-5a35e1faec941b02291b33d10cd2f516e0464f01.zip
constellation: Rename messages sent to the `Constellation` (#36341)
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 <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/messaging.rs')
-rw-r--r--components/script/messaging.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/messaging.rs b/components/script/messaging.rs
index 9012b27d424..48196669211 100644
--- a/components/script/messaging.rs
+++ b/components/script/messaging.rs
@@ -18,7 +18,7 @@ use net_traits::FetchResponseMsg;
use net_traits::image_cache::PendingImageResponse;
use profile_traits::mem::{self as profile_mem, OpaqueSender, ReportsChan};
use profile_traits::time::{self as profile_time};
-use script_traits::{Painter, ScriptMsg, ScriptThreadMessage};
+use script_traits::{Painter, ScriptThreadMessage, ScriptToConstellationMessage};
use stylo_atoms::Atom;
use timers::TimerScheduler;
#[cfg(feature = "webgpu")]
@@ -315,7 +315,8 @@ pub(crate) struct ScriptThreadSenders {
/// A [`Sender`] that sends messages to the `Constellation` associated with
/// particular pipelines.
#[no_trace]
- pub(crate) pipeline_to_constellation_sender: IpcSender<(PipelineId, ScriptMsg)>,
+ pub(crate) pipeline_to_constellation_sender:
+ IpcSender<(PipelineId, ScriptToConstellationMessage)>,
/// The shared [`IpcSender`] which is sent to the `ImageCache` when requesting an image. The
/// messages on this channel are routed to crossbeam [`Sender`] on the router thread, which