aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAneesh Agrawal <aneeshusa@gmail.com>2016-06-09 07:01:24 -0400
committerAneesh Agrawal <aneeshusa@gmail.com>2016-09-13 15:17:40 -0400
commit9d097e7d1570d68e5fe77ff01595cf14a3e2cc29 (patch)
tree32e6f49e53774b2fdfb4dec38223d48f9b12a7f9 /components/script/script_thread.rs
parentbb53da69578887befae195b18255967cc7f3fc59 (diff)
downloadservo-9d097e7d1570d68e5fe77ff01595cf14a3e2cc29.tar.gz
servo-9d097e7d1570d68e5fe77ff01595cf14a3e2cc29.zip
Use fn pipeline_id consistently, not fn pipeline
Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index d69124b5d07..beedf71d62d 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -644,7 +644,7 @@ impl ScriptThread {
let window = context.active_window();
let resize_event = window.steal_resize_event();
match resize_event {
- Some(size) => resizes.push((window.pipeline(), size)),
+ Some(size) => resizes.push((window.pipeline_id(), size)),
None => ()
}
}
@@ -1502,7 +1502,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 {
+ if window.pipeline_id() == id {
debug!("shutting down layout for root context {:?}", id);
shut_down_layout(&context);
let _ = self.constellation_chan.send(ConstellationMsg::PipelineExited(id));
@@ -1698,7 +1698,7 @@ impl ScriptThread {
});
let loader = DocumentLoader::new_with_threads(self.resource_threads.clone(),
- Some(browsing_context.pipeline()),
+ Some(browsing_context.pipeline_id()),
Some(incomplete.url.clone()));
let is_html_document = match metadata.content_type {
@@ -1754,7 +1754,7 @@ impl ScriptThread {
.unwrap();
// Notify devtools that a new script global exists.
- self.notify_devtools(document.Title(), final_url.clone(), (browsing_context.pipeline(), None));
+ self.notify_devtools(document.Title(), final_url.clone(), (browsing_context.pipeline_id(), None));
let is_javascript = incomplete.url.scheme() == "javascript";
let parse_input = if is_javascript {
@@ -1818,7 +1818,7 @@ impl ScriptThread {
}
if !incomplete.is_visible {
- self.alter_resource_utilization(browsing_context.pipeline(), false);
+ self.alter_resource_utilization(browsing_context.pipeline_id(), false);
}
context_remover.neuter();