mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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.
This commit is contained in:
parent
f9642b36bd
commit
bf9369b29d
17 changed files with 128 additions and 166 deletions
|
@ -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>()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue