aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2015-02-27 16:29:02 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-03-03 07:12:51 +1000
commit611fd7a8461a27387c06786d06dd48a39c112393 (patch)
tree4884357277b9324a8f6d06af9c1a96918a2679e9 /components/script/layout_interface.rs
parent8ad3c5aeb65e473a4c099b12e9439dfc556024f8 (diff)
downloadservo-611fd7a8461a27387c06786d06dd48a39c112393.tar.gz
servo-611fd7a8461a27387c06786d06dd48a39c112393.zip
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.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs4
1 files changed, 2 insertions, 2 deletions
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