diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-03-07 13:59:23 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:42:38 +0200 |
commit | 5a165c6bd85857578fadeb627a78d45afe4949f2 (patch) | |
tree | b456c9328ea3fecf05ae015e4ecd24c26e18e4fd /components/script_layout_interface/wrapper_traits.rs | |
parent | 5be6779f9a65218a41d970eab6f01dd5d6b60775 (diff) | |
download | servo-5a165c6bd85857578fadeb627a78d45afe4949f2.tar.gz servo-5a165c6bd85857578fadeb627a78d45afe4949f2.zip |
Move is_connected function from style to layout, where it is used
Diffstat (limited to 'components/script_layout_interface/wrapper_traits.rs')
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index 0a7e080bebb..0e1df2ac4c8 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -104,6 +104,9 @@ pub trait LayoutNode: Debug + GetLayoutData + TNode { fn traverse_preorder(self) -> TreeIterator<Self> { TreeIterator::new(self) } + + /// Returns whether the node is connected. + fn is_connected(&self) -> bool; } pub struct ReverseChildrenIterator<ConcreteNode> |