diff options
author | Nupur Baghel <nupurbaghel@gmail.com> | 2018-02-07 16:41:19 +0530 |
---|---|---|
committer | Nupur Baghel <nupurbaghel@gmail.com> | 2018-02-09 09:32:56 +0530 |
commit | d02422408e43ee279da81c091dd295e199d6b842 (patch) | |
tree | ea047bb3a0599856c3018e478953edd78b5d1d28 /components/script/dom/xmldocument.rs | |
parent | 1662fd735731fcdd6184b4b89f8eb704357fd102 (diff) | |
download | servo-d02422408e43ee279da81c091dd295e199d6b842.tar.gz servo-d02422408e43ee279da81c091dd295e199d6b842.zip |
Updated content_type of Document and XMLDocument from DOCString to Mime
Diffstat (limited to 'components/script/dom/xmldocument.rs')
-rw-r--r-- | components/script/dom/xmldocument.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/xmldocument.rs b/components/script/dom/xmldocument.rs index 68764eb1080..abd5ed64635 100644 --- a/components/script/dom/xmldocument.rs +++ b/components/script/dom/xmldocument.rs @@ -16,6 +16,7 @@ use dom::window::Window; use dom_struct::dom_struct; use js::jsapi::JSContext; use js::jsapi::JSObject; +use mime::Mime; use script_traits::DocumentActivity; use servo_url::{MutableOrigin, ServoUrl}; use std::ptr::NonNull; @@ -32,7 +33,7 @@ impl XMLDocument { url: Option<ServoUrl>, origin: MutableOrigin, is_html_document: IsHTMLDocument, - content_type: Option<DOMString>, + content_type: Option<Mime>, last_modified: Option<String>, activity: DocumentActivity, source: DocumentSource, @@ -59,7 +60,7 @@ impl XMLDocument { url: Option<ServoUrl>, origin: MutableOrigin, doctype: IsHTMLDocument, - content_type: Option<DOMString>, + content_type: Option<Mime>, last_modified: Option<String>, activity: DocumentActivity, source: DocumentSource, |