mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Rust upgrades
This commit is contained in:
parent
caf1ed9446
commit
bbac8aa5c3
130 changed files with 1236 additions and 985 deletions
|
@ -15,7 +15,7 @@ use geom::size::Size2D;
|
|||
use script_task::{ScriptChan};
|
||||
use servo_util::geometry::Au;
|
||||
use std::cmp;
|
||||
use std::comm::{Chan, SharedChan};
|
||||
use std::comm::Chan;
|
||||
use std::libc::c_void;
|
||||
use style::Stylesheet;
|
||||
|
||||
|
@ -132,11 +132,11 @@ pub struct Reflow {
|
|||
|
||||
/// Encapsulates a channel to the layout task.
|
||||
#[deriving(Clone)]
|
||||
pub struct LayoutChan(SharedChan<Msg>);
|
||||
pub struct LayoutChan(Chan<Msg>);
|
||||
|
||||
impl LayoutChan {
|
||||
pub fn new() -> (Port<Msg>, LayoutChan) {
|
||||
let (port, chan) = SharedChan::new();
|
||||
let (port, chan) = Chan::new();
|
||||
(port, LayoutChan(chan))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue