diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-07-15 15:44:45 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-07-15 16:41:12 +0200 |
commit | bf9369b29d42255ea52b172e3ddd9b44db922d44 (patch) | |
tree | 46ade80599ca2cd87eeb68a98a8992aefa421dcc /components/script/test.rs | |
parent | f9642b36bda3beb01dfedbc33e3586e5f7df473a (diff) | |
download | servo-bf9369b29d42255ea52b172e3ddd9b44db922d44.tar.gz servo-bf9369b29d42255ea52b172e3ddd9b44db922d44.zip |
script: Move the layout_wrapper outside of script.
This allows us to have ensure_data() and clear_data() functions on the TElement
trait, instead of hacking around it adding methods in random traits.
This also allows us to do some further cleanup, which I'd rather do in a
followup.
Diffstat (limited to 'components/script/test.rs')
-rw-r--r-- | components/script/test.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/components/script/test.rs b/components/script/test.rs index 9aeff2a22a5..bdd84d681b8 100644 --- a/components/script/test.rs +++ b/components/script/test.rs @@ -24,7 +24,6 @@ pub mod size_of { use dom::htmlspanelement::HTMLSpanElement; use dom::node::Node; use dom::text::Text; - use layout_wrapper::{ServoLayoutElement, ServoLayoutNode, ServoThreadSafeLayoutNode}; use std::mem::size_of; pub fn CharacterData() -> usize { @@ -55,18 +54,6 @@ pub mod size_of { size_of::<Node>() } - pub fn SendElement() -> usize { - size_of::<::style::dom::SendElement<ServoLayoutElement>>() - } - - pub fn SendNode() -> usize { - size_of::<::style::dom::SendNode<ServoLayoutNode>>() - } - - pub fn ServoThreadSafeLayoutNode() -> usize { - size_of::<ServoThreadSafeLayoutNode>() - } - pub fn Text() -> usize { size_of::<Text>() } |