diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-06-09 07:01:24 -0400 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-09-13 15:17:40 -0400 |
commit | 9d097e7d1570d68e5fe77ff01595cf14a3e2cc29 (patch) | |
tree | 32e6f49e53774b2fdfb4dec38223d48f9b12a7f9 /components/script/dom/xmlhttprequest.rs | |
parent | bb53da69578887befae195b18255967cc7f3fc59 (diff) | |
download | servo-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/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index a97dc7f802b..c23b97b48d7 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -278,7 +278,7 @@ impl LoadOrigin for XMLHttpRequest { } fn pipeline_id(&self) -> Option<PipelineId> { let global = self.global(); - Some(global.r().pipeline()) + Some(global.r().pipeline_id()) } } @@ -1189,7 +1189,7 @@ impl XMLHttpRequest { let decoded = charset.decode(&self.response.borrow(), DecoderTrap::Replace).unwrap(); let document = self.new_doc(IsHTMLDocument::HTMLDocument); // TODO: Disable scripting while parsing - parse_html(document.r(), DOMString::from(decoded), wr.get_url(), ParseContext::Owner(Some(wr.pipeline()))); + parse_html(document.r(), DOMString::from(decoded), wr.get_url(), ParseContext::Owner(Some(wr.pipeline_id()))); document } @@ -1200,7 +1200,10 @@ impl XMLHttpRequest { let decoded = charset.decode(&self.response.borrow(), DecoderTrap::Replace).unwrap(); let document = self.new_doc(IsHTMLDocument::NonHTMLDocument); // TODO: Disable scripting while parsing - parse_xml(document.r(), DOMString::from(decoded), wr.get_url(), xml::ParseContext::Owner(Some(wr.pipeline()))); + parse_xml(document.r(), + DOMString::from(decoded), + wr.get_url(), + xml::ParseContext::Owner(Some(wr.pipeline_id()))); document } |