mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Updated content_type of Document and XMLDocument from DOCString to Mime
This commit is contained in:
parent
1662fd7357
commit
d02422408e
6 changed files with 23 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue