diff options
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 8221a3f885c..b94ee469ecb 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -100,14 +100,6 @@ pub trait LayoutNode: Debug + GetLayoutData + TNode { fn traverse_preorder(self) -> TreeIterator<Self> { TreeIterator::new(self) } - - fn first_child(&self) -> Option<Self>; - - fn last_child(&self) -> Option<Self>; - - fn prev_sibling(&self) -> Option<Self>; - - fn next_sibling(&self) -> Option<Self>; } pub struct ReverseChildrenIterator<ConcreteNode> where ConcreteNode: LayoutNode { @@ -169,10 +161,6 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo /// Returns `None` if this is a pseudo-element; otherwise, returns `Some`. fn type_id(&self) -> Option<LayoutNodeType>; - /// Returns the type ID of this node, without discarding pseudo-elements as - /// `type_id` does. - fn type_id_without_excluding_pseudo_elements(&self) -> LayoutNodeType; - /// Returns the style for a text node. This is computed on the fly from the /// parent style to avoid traversing text nodes in the style system. /// @@ -183,14 +171,6 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo /// the parent until all the children have been processed. fn parent_style(&self) -> Arc<ComputedValues>; - #[inline] - fn is_element_or_elements_pseudo(&self) -> bool { - match self.type_id_without_excluding_pseudo_elements() { - LayoutNodeType::Element(..) => true, - _ => false, - } - } - fn get_before_pseudo(&self) -> Option<Self> { self.as_element().and_then(|el| el.get_before_pseudo()).map(|el| el.as_node()) } |