aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-25 08:46:51 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-11-27 14:55:41 +0100
commitadf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9 (patch)
treec45c20f0cb4f26dd5f43d2a59a7ece451e0b3629 /components/script/dom/document.rs
parent831979d6a7e6fc615434a6585710b2becb7dbf42 (diff)
downloadservo-adf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9.tar.gz
servo-adf8b359bb584ed2f1a4ae4c94401e3a3b2a03b9.zip
Add XMLDocument object
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 19adfbd490d..7703272bb8b 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -1392,14 +1392,14 @@ impl LayoutDocumentHelpers for LayoutJS<Document> {
}
impl Document {
- fn new_inherited(window: &Window,
- url: Option<Url>,
- is_html_document: IsHTMLDocument,
- content_type: Option<DOMString>,
- last_modified: Option<String>,
- source: DocumentSource,
- doc_loader: DocumentLoader)
- -> Document {
+ pub fn new_inherited(window: &Window,
+ url: Option<Url>,
+ is_html_document: IsHTMLDocument,
+ content_type: Option<DOMString>,
+ last_modified: Option<String>,
+ source: DocumentSource,
+ doc_loader: DocumentLoader)
+ -> Document {
let url = url.unwrap_or_else(|| url!("about:blank"));
let (ready_state, domcontentloaded_dispatched) = if source == DocumentSource::FromParser {