From bf9369b29d42255ea52b172e3ddd9b44db922d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 15 Jul 2017 15:44:45 +0200 Subject: 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. --- components/script/test.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'components/script/test.rs') 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::() } - pub fn SendElement() -> usize { - size_of::<::style::dom::SendElement>() - } - - pub fn SendNode() -> usize { - size_of::<::style::dom::SendNode>() - } - - pub fn ServoThreadSafeLayoutNode() -> usize { - size_of::() - } - pub fn Text() -> usize { size_of::() } -- cgit v1.2.3