aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/wrapper_traits.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-07-15 15:44:45 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-07-15 16:41:12 +0200
commitbf9369b29d42255ea52b172e3ddd9b44db922d44 (patch)
tree46ade80599ca2cd87eeb68a98a8992aefa421dcc /components/script_layout_interface/wrapper_traits.rs
parentf9642b36bda3beb01dfedbc33e3586e5f7df473a (diff)
downloadservo-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_layout_interface/wrapper_traits.rs')
-rw-r--r--components/script_layout_interface/wrapper_traits.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs
index 33116058aa9..33ffc3b545b 100644
--- a/components/script_layout_interface/wrapper_traits.rs
+++ b/components/script_layout_interface/wrapper_traits.rs
@@ -87,6 +87,7 @@ pub trait LayoutNode: Debug + GetLayoutData + TNode {
/// Returns the type ID of this node.
fn type_id(&self) -> LayoutNodeType;
+ unsafe fn initialize_data(&self);
unsafe fn init_style_and_layout_data(&self, data: OpaqueStyleAndLayoutData);
unsafe fn take_style_and_layout_data(&self) -> OpaqueStyleAndLayoutData;