diff options
Diffstat (limited to 'components/shared/webrender/display_list.rs')
-rw-r--r-- | components/shared/webrender/display_list.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/components/shared/webrender/display_list.rs b/components/shared/webrender/display_list.rs index dc2e799d688..2b7883c3ce1 100644 --- a/components/shared/webrender/display_list.rs +++ b/components/shared/webrender/display_list.rs @@ -4,6 +4,7 @@ //! Defines data structures which are consumed by the Compositor. +use base::id::ScrollTreeNodeId; use embedder_traits::Cursor; use serde::{Deserialize, Serialize}; use style::values::specified::Overflow; @@ -54,18 +55,6 @@ pub struct HitTestInfo { pub scroll_tree_node: ScrollTreeNodeId, } -/// An id for a ScrollTreeNode in the ScrollTree. This contains both the index -/// to the node in the tree's array of nodes as well as the corresponding SpatialId -/// for the SpatialNode in the WebRender display list. -#[derive(Clone, Copy, Debug, Default, Deserialize, PartialEq, Serialize)] -pub struct ScrollTreeNodeId { - /// The index of this scroll tree node in the tree's array of nodes. - pub index: usize, - - /// The WebRender spatial id of this scroll tree node. - pub spatial_id: SpatialId, -} - /// Data stored for nodes in the [ScrollTree] that actually scroll, /// as opposed to reference frames and sticky nodes which do not. #[derive(Debug, Deserialize, Serialize)] |