diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-05-10 15:55:05 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-05-10 17:16:15 +0200 |
commit | 4ed94629a2f73c939ab58b490d7ae0b0250bc734 (patch) | |
tree | 94c080289f44ed841b2630dd69bdbb794c333bd9 /components/script/script_task.rs | |
parent | ddf6cf6a16c2a4ee2d7a7ed2a9b8521193df7b0f (diff) | |
download | servo-4ed94629a2f73c939ab58b490d7ae0b0250bc734.tar.gz servo-4ed94629a2f73c939ab58b490d7ae0b0250bc734.zip |
Use Runtime in Window.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 926d8567b46..89dcb5e6a61 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -346,7 +346,7 @@ impl<'a> Drop for ScriptMemoryFailsafe<'a> { let page = owner.page.borrow_for_script_deallocation(); for page in page.iter() { let window = page.window_for_script_deallocation(); - (*window.unsafe_get()).clear_js_context_for_script_deallocation(); + (*window.unsafe_get()).clear_js_runtime_for_script_deallocation(); } } } @@ -1117,7 +1117,7 @@ impl ScriptTask { let mut page_remover = AutoPageRemover::new(self, page_to_remove); // Create the window and document objects. - let window = Window::new(self.js_runtime.cx.clone(), + let window = Window::new(self.js_runtime.clone(), page.clone(), self.chan.clone(), self.image_cache_channel.clone(), @@ -1493,7 +1493,7 @@ fn shut_down_layout(page_tree: &Rc<Page>, exit_type: PipelineExitType) { // Drop our references to the JSContext and DOM objects. for page in page_tree.iter() { let window = page.window().root(); - window.r().clear_js_context(); + window.r().clear_js_runtime(); // Sever the connection between the global and the DOM tree page.set_frame(None); } |