diff options
Diffstat (limited to 'components/shared/script_layout')
-rw-r--r-- | components/shared/script_layout/Cargo.toml | 1 | ||||
-rw-r--r-- | components/shared/script_layout/lib.rs | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/components/shared/script_layout/Cargo.toml b/components/shared/script_layout/Cargo.toml index c17ea3ac852..ddb4017c21c 100644 --- a/components/shared/script_layout/Cargo.toml +++ b/components/shared/script_layout/Cargo.toml @@ -16,6 +16,7 @@ base = { workspace = true } app_units = { workspace = true } atomic_refcell = { workspace = true } canvas_traits = { workspace = true } +constellation_traits = { workspace = true } euclid = { workspace = true } fnv = { workspace = true } fonts = { path = "../../fonts" } diff --git a/components/shared/script_layout/lib.rs b/components/shared/script_layout/lib.rs index 96e1a7797c6..f1c99561463 100644 --- a/components/shared/script_layout/lib.rs +++ b/components/shared/script_layout/lib.rs @@ -20,6 +20,7 @@ use atomic_refcell::AtomicRefCell; use base::Epoch; use base::id::{BrowsingContextId, PipelineId, WebViewId}; use canvas_traits::canvas::{CanvasId, CanvasMsg}; +use constellation_traits::{ScrollState, UntrustedNodeAddress, WindowSizeData}; use euclid::Size2D; use euclid::default::{Point2D, Rect}; use fnv::FnvHashMap; @@ -30,10 +31,7 @@ use malloc_size_of_derive::MallocSizeOf; use net_traits::image_cache::{ImageCache, PendingImageId}; use profile_traits::mem::Report; use profile_traits::time; -use script_traits::{ - InitialScriptState, LoadData, Painter, ScriptThreadMessage, UntrustedNodeAddress, - WindowSizeData, -}; +use script_traits::{InitialScriptState, LoadData, Painter, ScriptThreadMessage}; use serde::{Deserialize, Serialize}; use servo_arc::Arc as ServoArc; use servo_url::{ImmutableOrigin, ServoUrl}; @@ -51,7 +49,7 @@ use style::selector_parser::{PseudoElement, RestyleDamage, Snapshot}; use style::stylesheets::Stylesheet; use style_traits::CSSPixel; use webrender_api::ImageKey; -use webrender_traits::{CrossProcessCompositorApi, ScrollState}; +use webrender_traits::CrossProcessCompositorApi; pub type GenericLayoutData = dyn Any + Send + Sync; |