diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-04-19 14:45:47 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-04-20 08:51:38 +0200 |
commit | d150cc9f95c45f80a96678a3ed1c8e076f005382 (patch) | |
tree | d3f7dded41ee67b2cc86948207bcc7c74dc3f4cf /components/layout/context.rs | |
parent | 7919e591a46274c0d7f3a7c7c99d2643d55d60f1 (diff) | |
download | servo-d150cc9f95c45f80a96678a3ed1c8e076f005382.tar.gz servo-d150cc9f95c45f80a96678a3ed1c8e076f005382.zip |
Eliminate ScrollRootId
Just use WebRender's ClipId directly. This will allow us to create and
use ReferenceFrames in the future, if we need to do that. It will also
make it easier to have Servo responsible for creating the root
scrolling area, which will allow removing some old hacks in the future.
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r-- | components/layout/context.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs index 72be2555720..214061e276f 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -9,6 +9,7 @@ use gfx::display_list::{WebRenderImageInfo, OpaqueNode}; use gfx::font_cache_thread::FontCacheThread; use gfx::font_context::FontContext; use heapsize::HeapSizeOf; +use msg::constellation_msg::PipelineId; use net_traits::image_cache::{CanRequestImages, ImageCache, ImageState}; use net_traits::image_cache::{ImageOrMetadataAvailable, UsePlaceholder}; use opaque_node::OpaqueNodeMethods; @@ -76,6 +77,9 @@ pub fn heap_size_of_persistent_local_context() -> usize { /// Layout information shared among all workers. This must be thread-safe. pub struct LayoutContext<'a> { + /// The pipeline id of this LayoutContext. + pub id: PipelineId, + /// Bits shared by the layout and style system. pub style_context: SharedStyleContext<'a>, |