mirror of
https://github.com/servo/servo.git
synced 2025-06-18 05:14:28 +00:00
Remove generation, remove filter pop, and add size tests.
This commit is contained in:
parent
ea6a61af59
commit
940cda1d15
8 changed files with 14 additions and 24 deletions
|
@ -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>()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue