diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-16 14:25:25 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-17 08:57:35 +0200 |
commit | a11d268468e1bbb56f96ac8de61e8696b034df2d (patch) | |
tree | 7d37faeb15dfb58aa178fd5d891982daf3bae8cd /components/script_layout_interface/wrapper_traits.rs | |
parent | 7c2265360f4153bd75da1cae46cd06a3c53d35f3 (diff) | |
download | servo-a11d268468e1bbb56f96ac8de61e8696b034df2d.tar.gz servo-a11d268468e1bbb56f96ac8de61e8696b034df2d.zip |
style: Refactor children handling.
Moving traversal_children away from TNode I can make TNode trivial enough, in
order to share a QuerySelector implementation between Servo and Gecko.
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 8221a3f885c..a0571c66ff0 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 { |