diff --git a/components/layout/context.rs b/components/layout/context.rs index 39b24f92025..9efe148ba41 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -4,7 +4,6 @@ use std::sync::Arc; -use base::id::PipelineId; use euclid::Size2D; use fnv::FnvHashMap; use fonts::FontContext; @@ -26,10 +25,8 @@ use webrender_api::units::{DeviceIntSize, DeviceSize}; pub(crate) type CachedImageOrError = Result; -pub struct LayoutContext<'a> { - pub id: PipelineId, +pub(crate) struct LayoutContext<'a> { pub use_rayon: bool, - pub origin: ImmutableOrigin, /// Bits shared by the layout and style system. pub style_context: SharedStyleContext<'a>, @@ -37,31 +34,12 @@ pub struct LayoutContext<'a> { /// A FontContext to be used during layout. pub font_context: Arc, - /// Reference to the script thread image cache. - pub image_cache: Arc, - - /// A list of in-progress image loads to be shared with the script thread. - pub pending_images: Mutex>, - - /// A list of fully loaded vector images that need to be rasterized to a specific - /// size determined by layout. This will be shared with the script thread. - pub pending_rasterization_images: Mutex>, - /// A collection of `