mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove unsupported types from the SupportedType IDL enum.
This commit is contained in:
parent
55f7636549
commit
3dac90b49e
2 changed files with 2 additions and 6 deletions
|
@ -7,7 +7,6 @@ use dom::bindings::codegen::Bindings::DOMParserBinding;
|
||||||
use dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods;
|
use dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods;
|
||||||
use dom::bindings::codegen::Bindings::DOMParserBinding::SupportedType::{Text_html, Text_xml};
|
use dom::bindings::codegen::Bindings::DOMParserBinding::SupportedType::{Text_html, Text_xml};
|
||||||
use dom::bindings::error::Fallible;
|
use dom::bindings::error::Fallible;
|
||||||
use dom::bindings::error::Error::FailureUnknown;
|
|
||||||
use dom::bindings::global::GlobalRef;
|
use dom::bindings::global::GlobalRef;
|
||||||
use dom::bindings::js::{JS, JSRef, Temporary};
|
use dom::bindings::js::{JS, JSRef, Temporary};
|
||||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||||
|
@ -69,9 +68,6 @@ impl<'a> DOMParserMethods for JSRef<'a, DOMParser> {
|
||||||
Some(content_type),
|
Some(content_type),
|
||||||
DocumentSource::NotFromParser))
|
DocumentSource::NotFromParser))
|
||||||
}
|
}
|
||||||
_ => {
|
|
||||||
Err(FailureUnknown)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
enum SupportedType {
|
enum SupportedType {
|
||||||
"text/html",
|
"text/html",
|
||||||
"text/xml",
|
"text/xml"/*,
|
||||||
"application/xml",
|
"application/xml",
|
||||||
"application/xhtml+xml",
|
"application/xhtml+xml",
|
||||||
"image/svg+xml"
|
"image/svg+xml"*/
|
||||||
};
|
};
|
||||||
|
|
||||||
[Constructor]
|
[Constructor]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue