diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/Cargo.toml | 3 | ||||
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 24 | ||||
-rw-r--r-- | components/script/lib.rs | 3 |
3 files changed, 0 insertions, 30 deletions
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index a1beb33e8f8..a78053f76cd 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -23,9 +23,6 @@ phf_codegen = "0.7.18" phf_shared = "0.7.18" serde_json = "1.0" -[target.'cfg(all(any(target_os = "macos", target_os = "linux"), not(any(target_arch = "arm", target_arch = "aarch64"))))'.dependencies] -gecko-media = {git = "https://github.com/servo/gecko-media.git"} - [target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))'.dependencies] tinyfiledialogs = "2.5.9" diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 426f5ae32b4..1122e267e7e 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -31,13 +31,10 @@ use dom::node::{window_from_node, document_from_node, Node, UnbindContext}; use dom::promise::Promise; use dom::virtualmethods::VirtualMethods; use dom_struct::dom_struct; -#[cfg(all(any(target_os = "macos", target_os = "linux"), not(any(target_arch = "arm", target_arch = "aarch64"))))] -use gecko_media::{CanPlayType, GeckoMedia}; use html5ever::{LocalName, Prefix}; use ipc_channel::ipc; use ipc_channel::router::ROUTER; use microtask::{Microtask, MicrotaskRunnable}; -#[allow(unused_imports)] use mime::{Mime, SubLevel, TopLevel}; use net_traits::{FetchResponseListener, FetchMetadata, Metadata, NetworkError}; use net_traits::request::{CredentialsMode, Destination, RequestInit}; @@ -870,27 +867,6 @@ impl HTMLMediaElementMethods for HTMLMediaElement { self.media_element_load_algorithm(); } - #[cfg(all( - any(target_os = "macos", target_os = "linux"), - not(any(target_arch = "arm", target_arch = "aarch64")), - ))] - // https://html.spec.whatwg.org/multipage/#dom-navigator-canplaytype - fn CanPlayType(&self, type_: DOMString) -> CanPlayTypeResult { - let gecko_media = match GeckoMedia::get() { - Ok(gecko_media) => gecko_media, - Err(_) => return CanPlayTypeResult::_empty, - }; - match gecko_media.can_play_type(&type_) { - CanPlayType::No => CanPlayTypeResult::_empty, - CanPlayType::Maybe => CanPlayTypeResult::Maybe, - CanPlayType::Probably => CanPlayTypeResult::Probably - } - } - - #[cfg(not(all( - any(target_os = "macos", target_os = "linux"), - not(any(target_arch = "arm", target_arch = "aarch64")), - )))] // https://html.spec.whatwg.org/multipage/#dom-navigator-canplaytype fn CanPlayType(&self, type_: DOMString) -> CanPlayTypeResult { match type_.parse::<Mime>() { diff --git a/components/script/lib.rs b/components/script/lib.rs index 3143342e4f6..c3517691e8b 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -42,9 +42,6 @@ extern crate domobject_derive; extern crate encoding_rs; extern crate euclid; extern crate fnv; -#[allow(unused_extern_crates)] -#[cfg(all(any(target_os = "macos", target_os = "linux"), not(any(target_arch = "arm", target_arch = "aarch64"))))] -extern crate gecko_media; extern crate gleam; extern crate half; #[macro_use] extern crate html5ever; |