aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documentorshadowroot.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-03-22 16:49:08 +0100
committerGitHub <noreply@github.com>2025-03-22 15:49:08 +0000
commit7c574141c06d4705c35232a72b8ce75196291bb3 (patch)
treef7d501d1dd480c02fc19162ebde4ab3a8b3b77a3 /components/script/dom/documentorshadowroot.rs
parent02375809b0348aeac85c709d9a6cf828d7f22144 (diff)
downloadservo-7c574141c06d4705c35232a72b8ce75196291bb3.tar.gz
servo-7c574141c06d4705c35232a72b8ce75196291bb3.zip
Create a `constellation_traits` crate (#36088)
This change creates a `constellation_traits` crate. Previously messages to the `Constellation` were in the `compositing_traits` crate, which came about organically. This change moves these to a new crate which also contains data types that are used in both compositing/libservo and script (ie types that cross the process boundary). The idea is similar to `embedding_traits`, but this is meant for types not exposed to the API. This change allows deduplicating `UntrustedNodeAddress`, which previously had two versions to avoid circular dependencies. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/documentorshadowroot.rs')
-rw-r--r--components/script/dom/documentorshadowroot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs
index bfc29673d7d..ac9140e65c4 100644
--- a/components/script/dom/documentorshadowroot.rs
+++ b/components/script/dom/documentorshadowroot.rs
@@ -4,9 +4,9 @@
use std::fmt;
+use constellation_traits::UntrustedNodeAddress;
use euclid::default::Point2D;
use script_layout_interface::{NodesFromPointQueryType, QueryMsg};
-use script_traits::UntrustedNodeAddress;
use servo_arc::Arc;
use style::invalidation::media_queries::{MediaListKey, ToMediaListKey};
use style::media_queries::MediaList;