Remove generation, remove filter pop, and add size tests.

This commit is contained in:
Bobby Holley 2016-12-22 10:40:27 -08:00
parent ea6a61af59
commit 940cda1d15
8 changed files with 14 additions and 24 deletions

View file

@ -19,7 +19,7 @@ pub mod size_of {
use dom::htmlspanelement::HTMLSpanElement;
use dom::node::Node;
use dom::text::Text;
use layout_wrapper::ServoThreadSafeLayoutNode;
use layout_wrapper::{ServoLayoutElement, ServoLayoutNode, ServoThreadSafeLayoutNode};
use std::mem::size_of;
pub fn CharacterData() -> usize {
@ -50,6 +50,14 @@ 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>()
}