aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/rpc.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/script_layout_interface/rpc.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/script_layout_interface/rpc.rs')
-rw-r--r--components/script_layout_interface/rpc.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs
index a470e76286e..94deab19b2b 100644
--- a/components/script_layout_interface/rpc.rs
+++ b/components/script_layout_interface/rpc.rs
@@ -5,7 +5,6 @@
use app_units::Au;
use euclid::point::Point2D;
use euclid::rect::Rect;
-use gfx_traits::LayerId;
use script_traits::UntrustedNodeAddress;
use style::properties::longhands::{margin_top, margin_right, margin_bottom, margin_left, overflow_x};
@@ -28,8 +27,6 @@ pub trait LayoutRPC {
fn node_overflow(&self) -> NodeOverflowResponse;
/// Requests the scroll geometry of this node. Used by APIs such as `scrollTop`.
fn node_scroll_area(&self) -> NodeGeometryResponse;
- /// Requests the layer id of this node. Used by APIs such as `scrollTop`
- fn node_layer_id(&self) -> NodeLayerIdResponse;
/// Requests the node containing the point of interest
fn hit_test(&self) -> HitTestResponse;
/// Query layout for the resolved value of a given CSS property
@@ -51,10 +48,6 @@ pub struct NodeGeometryResponse {
pub struct NodeOverflowResponse(pub Option<Point2D<overflow_x::computed_value::T>>);
-pub struct NodeLayerIdResponse {
- pub layer_id: LayerId,
-}
-
pub struct HitTestResponse {
pub node_address: Option<UntrustedNodeAddress>,
}