aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-01-12 19:16:21 -0800
committerbors-servo <release+servo@mozilla.com>2014-01-12 19:16:21 -0800
commit943ab4a4f0e3074e78d96ad94b7e96a46edacf79 (patch)
tree0a086f0bf0f5f1f0b9fde7c9e971c096cb1708cb /src/components/script/layout_interface.rs
parente8b0eae09e531674fb6cd7ea0b341f77ae551aa2 (diff)
parenta7ef1cd35e9347a285f245041db4eb94047f4ab0 (diff)
downloadservo-943ab4a4f0e3074e78d96ad94b7e96a46edacf79.tar.gz
servo-943ab4a4f0e3074e78d96ad94b7e96a46edacf79.zip
auto merge of #1473 : metajack/servo/rustup-20131219, r=jdm
Diffstat (limited to 'src/components/script/layout_interface.rs')
-rw-r--r--src/components/script/layout_interface.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/script/layout_interface.rs b/src/components/script/layout_interface.rs
index c0b35ef6a3f..613e61a3429 100644
--- a/src/components/script/layout_interface.rs
+++ b/src/components/script/layout_interface.rs
@@ -122,9 +122,11 @@ pub struct Reflow {
/// Encapsulates a channel to the layout task.
#[deriving(Clone)]
pub struct LayoutChan(SharedChan<Msg>);
+
impl LayoutChan {
- pub fn new(chan: Chan<Msg>) -> LayoutChan {
- LayoutChan(SharedChan::new(chan))
+ pub fn new() -> (Port<Msg>, LayoutChan) {
+ let (port, chan) = SharedChan::new();
+ (port, LayoutChan(chan))
}
}