aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/display_list/mod.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/layout_2020/display_list/mod.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/layout_2020/display_list/mod.rs')
-rw-r--r--components/layout_2020/display_list/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout_2020/display_list/mod.rs b/components/layout_2020/display_list/mod.rs
index 4ba62041099..bc5032148f3 100644
--- a/components/layout_2020/display_list/mod.rs
+++ b/components/layout_2020/display_list/mod.rs
@@ -7,6 +7,7 @@ use std::sync::Arc;
use app_units::Au;
use base::WebRenderEpochToU16;
+use base::id::ScrollTreeNodeId;
use embedder_traits::Cursor;
use euclid::{Point2D, SideOffsets2D, Size2D, UnknownUnit};
use fonts::GlyphStore;
@@ -35,9 +36,7 @@ use webrender_api::{
self as wr, BorderDetails, BoxShadowClipMode, ClipChainId, CommonItemProperties,
ImageRendering, NinePatchBorder, NinePatchBorderSource, units,
};
-use webrender_traits::display_list::{
- AxesScrollSensitivity, CompositorDisplayListInfo, ScrollTreeNodeId,
-};
+use webrender_traits::display_list::{AxesScrollSensitivity, CompositorDisplayListInfo};
use wr::units::LayoutVector2D;
use crate::context::LayoutContext;