aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2016-10-19 15:14:02 +0200
committerMartin Robinson <mrobinson@igalia.com>2016-10-21 08:38:34 +0200
commitccb7ab926a3710c32d920b9ff09a0b7557639905 (patch)
tree631552b75c6b87f6498cabe402452e9f8e80f50b /components/layout/context.rs
parente667e62f0ca8cd5fd21282333808cccaed8c957c (diff)
downloadservo-ccb7ab926a3710c32d920b9ff09a0b7557639905.tar.gz
servo-ccb7ab926a3710c32d920b9ff09a0b7557639905.zip
Remove concept of Layers from Servo
Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code.
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 7125c6ab44d..17a484e2930 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -7,13 +7,10 @@
// for thread_local
#![allow(unsafe_code)]
-use app_units::Au;
-use euclid::Rect;
use fnv::FnvHasher;
use gfx::display_list::WebRenderImageInfo;
use gfx::font_cache_thread::FontCacheThread;
use gfx::font_context::FontContext;
-use gfx_traits::LayerId;
use heapsize::HeapSizeOf;
use ipc_channel::ipc;
use net_traits::image::base::Image;
@@ -87,9 +84,6 @@ pub struct SharedLayoutContext {
/// Interface to the font cache thread.
pub font_cache_thread: Mutex<FontCacheThread>,
- /// The visible rects for each layer, as reported to us by the compositor.
- pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, BuildHasherDefault<FnvHasher>>>,
-
/// A cache of WebRender image info.
pub webrender_image_cache: Arc<RwLock<HashMap<(Url, UsePlaceholder),
WebRenderImageInfo,