diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-05-08 23:40:15 +0200 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-05-22 16:36:40 -0600 |
commit | eaedeb07cb0c4fdda37f35057588e4a769fbe758 (patch) | |
tree | cdeb134482f06818f7d6dbad8e008882fcc336a5 /src/components/script/dom/window.rs | |
parent | 3644d0272c89336954358eb5005f884a9c89e8bc (diff) | |
download | servo-eaedeb07cb0c4fdda37f35057588e4a769fbe758.tar.gz servo-eaedeb07cb0c4fdda37f35057588e4a769fbe758.zip |
Update Rust.
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r-- | src/components/script/dom/window.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs index 0e553ac54fa..e620714a9c4 100644 --- a/src/components/script/dom/window.rs +++ b/src/components/script/dom/window.rs @@ -70,9 +70,9 @@ pub struct Window { pub location: Option<JS<Location>>, pub navigator: Option<JS<Navigator>>, pub image_cache_task: ImageCacheTask, - pub active_timers: HashMap<TimerId, TimerHandle>, + pub active_timers: Box<HashMap<TimerId, TimerHandle>>, pub next_timer_handle: i32, - pub compositor: Untraceable<~ScriptListener>, + pub compositor: Untraceable<Box<ScriptListener>>, pub browser_context: Option<BrowserContext>, pub page: Rc<Page>, pub performance: Option<JS<Performance>>, @@ -382,10 +382,10 @@ impl Window { pub fn new(cx: *JSContext, page: Rc<Page>, script_chan: ScriptChan, - compositor: ~ScriptListener, + compositor: Box<ScriptListener>, image_cache_task: ImageCacheTask) -> JS<Window> { - let win = ~Window { + let win = box Window { eventtarget: EventTarget::new_inherited(WindowTypeId), script_chan: script_chan, console: None, @@ -394,7 +394,7 @@ impl Window { location: None, navigator: None, image_cache_task: image_cache_task, - active_timers: HashMap::new(), + active_timers: box HashMap::new(), next_timer_handle: 0, browser_context: None, performance: None, |