diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-10-15 10:59:01 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-10-15 11:03:20 +0200 |
commit | c7b1d3054f9e87cf7ae7b10df5fbf5a97f6448f4 (patch) | |
tree | 08886f4fabb29cac0b0ba7cb341477ab8f28a757 /components/script/dom/htmlmediaelement.rs | |
parent | 8b366a7441a7a4febcb5e2047807f9ad447c7adb (diff) | |
download | servo-c7b1d3054f9e87cf7ae7b10df5fbf5a97f6448f4.tar.gz servo-c7b1d3054f9e87cf7ae7b10df5fbf5a97f6448f4.zip |
Change AttrValue::Url to AttrValue::ResolvedUrl
There is actually only one attribute that can use that, the one for
<body background>.
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 965dd83cee4..d5c3748bd0c 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -46,7 +46,6 @@ use std::collections::VecDeque; use std::mem; use std::rc::Rc; use std::sync::{Arc, Mutex}; -use style::attr::AttrValue; use task_source::TaskSource; use time::{self, Timespec, Duration}; @@ -840,7 +839,7 @@ impl HTMLMediaElementMethods for HTMLMediaElement { make_url_getter!(Src, "src"); // https://html.spec.whatwg.org/multipage/#dom-media-src - make_url_setter!(SetSrc, "src"); + make_setter!(SetSrc, "src"); // https://html.spec.whatwg.org/multipage/#dom-media-srcobject fn GetSrcObject(&self) -> Option<DomRoot<Blob>> { @@ -915,13 +914,6 @@ impl VirtualMethods for HTMLMediaElement { Some(self.upcast::<HTMLElement>() as &VirtualMethods) } - fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue { - match name { - &local_name!("src") => AttrValue::from_url(document_from_node(self).base_url(), value.into()), - _ => self.super_type().unwrap().parse_plain_attribute(name, value), - } - } - fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation) { self.super_type().unwrap().attribute_mutated(attr, mutation); |