diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-06-09 08:17:30 -0400 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-09-13 15:37:38 -0400 |
commit | 56fbfd46a4e1e31bf9cde59cffdffbb1b05f97bf (patch) | |
tree | fdfd2b2e51d840b451ef01a65a4398e1030bb596 /components/script/dom/servohtmlparser.rs | |
parent | b9b25b6f82d838c7bb6f87b71d7726f7a58847d9 (diff) | |
download | servo-56fbfd46a4e1e31bf9cde59cffdffbb1b05f97bf.tar.gz servo-56fbfd46a4e1e31bf9cde59cffdffbb1b05f97bf.zip |
Excise SubpageId and use only PipelineIds
SubpageId was originally introduced in 2013 to help iframes keep track of
their associated (children) pipelines. However, since each pipeline
already has a PipelineId, and those are unique, those are sufficient
to keep track of children.
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r-- | components/script/dom/servohtmlparser.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs index 548dad24dae..24a22be75dd 100644 --- a/components/script/dom/servohtmlparser.rs +++ b/components/script/dom/servohtmlparser.rs @@ -30,7 +30,7 @@ use hyper::header::ContentType; use hyper::mime::{Mime, SubLevel, TopLevel}; use hyper_serde::Serde; use js::jsapi::JSTracer; -use msg::constellation_msg::{PipelineId, SubpageId}; +use msg::constellation_msg::PipelineId; use net_traits::{AsyncResponseListener, Metadata, NetworkError}; use network_listener::PreInvoke; use parse::{Parser, ParserRef, TrustedParser}; @@ -67,19 +67,16 @@ pub struct ParserContext { is_synthesized_document: bool, /// The pipeline associated with this document. id: PipelineId, - /// The subpage associated with this document. - subpage: Option<SubpageId>, /// The URL for this document. url: Url, } impl ParserContext { - pub fn new(id: PipelineId, subpage: Option<SubpageId>, url: Url) -> ParserContext { + pub fn new(id: PipelineId, url: Url) -> ParserContext { ParserContext { parser: None, is_synthesized_document: false, id: id, - subpage: subpage, url: url, } } @@ -102,7 +99,6 @@ impl AsyncResponseListener for ParserContext { let content_type = metadata.clone().and_then(|meta| meta.content_type).map(Serde::into_inner); let parser = match ScriptThread::page_headers_available(&self.id, - self.subpage.as_ref(), metadata) { Some(parser) => parser, None => return, |