From 27f100b1d47058b92d0e23d8c1b2e472fb0eafca Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sat, 1 Oct 2016 17:24:54 +0200 Subject: Introduce GlobalScope::pipeline_id --- components/script/script_thread.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 0b26647f3e8..8699a56742b 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -650,7 +650,7 @@ impl ScriptThread { let window = context.active_window(); let resize_event = window.steal_resize_event(); match resize_event { - Some(size) => resizes.push((window.pipeline_id(), size)), + Some(size) => resizes.push((window.upcast::().pipeline_id(), size)), None => () } } @@ -1501,7 +1501,7 @@ impl ScriptThread { // If root is being exited, shut down all contexts let context = self.root_browsing_context(); let window = context.active_window(); - if window.pipeline_id() == id { + if window.upcast::().pipeline_id() == id { debug!("shutting down layout for root context {:?}", id); shut_down_layout(&context); let _ = self.constellation_chan.send(ConstellationMsg::PipelineExited(id)); -- cgit v1.2.3