diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-05-14 12:44:59 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-14 12:44:59 +0200 |
commit | 69172a1ae5d7187c4fe18e3a0d6d8732753a3d56 (patch) | |
tree | 47a8dff3ef30386817228d6b6328b0f3ba2a9f32 /src/components/script/script_task.rs | |
parent | 52fbaf7e17bf19d52675cdf044fd2db60080fbb4 (diff) | |
download | servo-69172a1ae5d7187c4fe18e3a0d6d8732753a3d56.tar.gz servo-69172a1ae5d7187c4fe18e3a0d6d8732753a3d56.zip |
Rename the pipeline ID fields in NewLayoutInfo.
This will make the distinction clearer with the subpage ID field to be added.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index a750903e45d..6c2d8032a21 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -91,8 +91,8 @@ pub enum ScriptMsg { } pub struct NewLayoutInfo { - pub old_id: PipelineId, - pub new_id: PipelineId, + pub old_pipeline_id: PipelineId, + pub new_pipeline_id: PipelineId, pub layout_chan: LayoutChan, } @@ -782,18 +782,18 @@ impl ScriptTask { fn handle_new_layout(&self, new_layout_info: NewLayoutInfo) { debug!("Script: new layout: {:?}", new_layout_info); let NewLayoutInfo { - old_id, - new_id, + old_pipeline_id, + new_pipeline_id, layout_chan } = new_layout_info; let mut page = self.page.borrow_mut(); - let parent_page = page.find(old_id).expect("ScriptTask: received a layout + let parent_page = page.find(old_pipeline_id).expect("ScriptTask: received a layout whose parent has a PipelineId which does not correspond to a pipeline in the script task's page tree. This is a bug."); let new_page = { let window_size = parent_page.window_size.deref().get(); - Page::new(new_id, layout_chan, window_size, + Page::new(new_pipeline_id, layout_chan, window_size, parent_page.resource_task.deref().clone(), self.constellation_chan.clone(), self.js_context.borrow().get_ref().clone()) |