aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-03-02 16:45:51 -0700
committerbors-servo <metajack+bors@gmail.com>2015-03-02 16:45:51 -0700
commit65454e51c806c7d91c869a7b4afce872b4eeea57 (patch)
treeea8a871e056521cf1f2cef02474a26979eac1001 /components/script/layout_interface.rs
parent891dd496e3994a96dc76ce247623be6c32a073fb (diff)
parent611fd7a8461a27387c06786d06dd48a39c112393 (diff)
downloadservo-65454e51c806c7d91c869a7b4afce872b4eeea57.tar.gz
servo-65454e51c806c7d91c869a7b4afce872b4eeea57.zip
auto merge of #5086 : glennw/servo/reap-more-stuff, r=jdm
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