diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-01 17:24:54 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 20:59:13 +0200 |
commit | 27f100b1d47058b92d0e23d8c1b2e472fb0eafca (patch) | |
tree | 2f12c1364fe0b5abb9b7f1405be81e04023193dd /components/script/script_thread.rs | |
parent | c6ff767625fff00e7c8f41d254c074e8e1e277be (diff) | |
download | servo-27f100b1d47058b92d0e23d8c1b2e472fb0eafca.tar.gz servo-27f100b1d47058b92d0e23d8c1b2e472fb0eafca.zip |
Introduce GlobalScope::pipeline_id
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<GlobalScope>().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::<GlobalScope>().pipeline_id() == id { debug!("shutting down layout for root context {:?}", id); shut_down_layout(&context); let _ = self.constellation_chan.send(ConstellationMsg::PipelineExited(id)); |