diff options
author | Anthony Ramine <nox@nox.paris> | 2020-04-07 13:13:33 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-04-07 14:34:47 +0200 |
commit | c10e8399246e5254a080c2dc809d1c180f06cc93 (patch) | |
tree | 886801861030bfd2ff6f4f5ac146f61526d1d28f /components/script_layout_interface/rpc.rs | |
parent | 030a1cf8fb040155ca4c5a414f6e2ca01f7574ad (diff) | |
download | servo-c10e8399246e5254a080c2dc809d1c180f06cc93.tar.gz servo-c10e8399246e5254a080c2dc809d1c180f06cc93.zip |
Don't go through the layout thread to retrieve a node's primary style
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r-- | components/script_layout_interface/rpc.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs index 19da8fa6afc..991437553cd 100644 --- a/components/script_layout_interface/rpc.rs +++ b/components/script_layout_interface/rpc.rs @@ -6,8 +6,6 @@ use app_units::Au; use euclid::default::Rect; use euclid::Size2D; use script_traits::UntrustedNodeAddress; -use servo_arc::Arc; -use style::properties::ComputedValues; use style_traits::CSSPixel; use webrender_api::ExternalScrollId; @@ -33,9 +31,6 @@ pub trait LayoutRPC { /// Query layout for the resolved value of a given CSS property fn resolved_style(&self) -> ResolvedStyleResponse; fn offset_parent(&self) -> OffsetParentResponse; - /// Requests the styles for an element. Contains a `None` value if the element is in a `display: - /// none` subtree. - fn style(&self) -> StyleResponse; fn text_index(&self) -> TextIndexResponse; /// Requests the list of nodes from the given point. fn nodes_from_point_response(&self) -> Vec<UntrustedNodeAddress>; @@ -73,7 +68,4 @@ impl OffsetParentResponse { } #[derive(Clone)] -pub struct StyleResponse(pub Option<Arc<ComputedValues>>); - -#[derive(Clone)] pub struct TextIndexResponse(pub Option<usize>); |