From 611fd7a8461a27387c06786d06dd48a39c112393 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 27 Feb 2015 16:29:02 +1000 Subject: Reap layout data whenever a node is removed from the tree. Also introduce a clear() function to layout data which will be used to clear items such as compositor layouts. Clear the layout data when a node becomes display:none. --- components/script/layout_interface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/layout_interface.rs') diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index c82370207cf..5b83c471b73 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -6,7 +6,7 @@ //! interface helps reduce coupling between these two components, and enables //! the DOM to be placed in a separate crate from layout. -use dom::node::LayoutDataRef; +use dom::node::LayoutData; use geom::point::Point2D; use geom::rect::Rect; @@ -41,7 +41,7 @@ pub enum Msg { /// Destroys layout data associated with a DOM node. /// /// TODO(pcwalton): Maybe think about batching to avoid message traffic. - ReapLayoutData(LayoutDataRef), + ReapLayoutData(LayoutData), /// Requests that the layout task enter a quiescent state in which no more messages are /// accepted except `ExitMsg`. A response message will be sent on the supplied channel when -- cgit v1.2.3