diff options
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 81708864742..74f8c87b77b 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -5,7 +5,7 @@ use audio_video_metadata; use document_loader::{LoadBlocker, LoadType}; use dom::attr::Attr; -use dom::bindings::cell::DOMRefCell; +use dom::bindings::cell::DomRefCell; use dom::bindings::codegen::Bindings::AttrBinding::AttrMethods; use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::CanPlayTypeResult; use dom::bindings::codegen::Bindings::HTMLMediaElementBinding::HTMLMediaElementConstants; @@ -58,7 +58,7 @@ pub struct HTMLMediaElement { /// https://html.spec.whatwg.org/multipage/#dom-media-readystate ready_state: Cell<ReadyState>, /// https://html.spec.whatwg.org/multipage/#dom-media-currentsrc - current_src: DOMRefCell<String>, + current_src: DomRefCell<String>, /// Incremented whenever tasks associated with this element are cancelled. generation_id: Cell<u32>, /// https://html.spec.whatwg.org/multipage/#fire-loadeddata @@ -72,16 +72,16 @@ pub struct HTMLMediaElement { /// https://html.spec.whatwg.org/multipage/#attr-media-autoplay autoplaying: Cell<bool>, /// https://html.spec.whatwg.org/multipage/#delaying-the-load-event-flag - delaying_the_load_event_flag: DOMRefCell<Option<LoadBlocker>>, + delaying_the_load_event_flag: DomRefCell<Option<LoadBlocker>>, /// https://html.spec.whatwg.org/multipage/#list-of-pending-play-promises #[ignore_heap_size_of = "promises are hard"] - pending_play_promises: DOMRefCell<Vec<Rc<Promise>>>, + pending_play_promises: DomRefCell<Vec<Rc<Promise>>>, /// Play promises which are soon to be fulfilled by a queued task. #[ignore_heap_size_of = "promises are hard"] - in_flight_play_promises_queue: DOMRefCell<VecDeque<(Box<[Rc<Promise>]>, ErrorResult)>>, + in_flight_play_promises_queue: DomRefCell<VecDeque<(Box<[Rc<Promise>]>, ErrorResult)>>, /// The details of the video currently related to this media element. // FIXME(nox): Why isn't this in HTMLVideoElement? - video: DOMRefCell<Option<VideoMedia>>, + video: DomRefCell<Option<VideoMedia>>, } /// https://html.spec.whatwg.org/multipage/#dom-media-networkstate @@ -126,7 +126,7 @@ impl HTMLMediaElement { htmlelement: HTMLElement::new_inherited(tag_name, prefix, document), network_state: Cell::new(NetworkState::Empty), ready_state: Cell::new(ReadyState::HaveNothing), - current_src: DOMRefCell::new("".to_owned()), + current_src: DomRefCell::new("".to_owned()), generation_id: Cell::new(0), fired_loadeddata_event: Cell::new(false), error: Default::default(), @@ -136,7 +136,7 @@ impl HTMLMediaElement { delaying_the_load_event_flag: Default::default(), pending_play_promises: Default::default(), in_flight_play_promises_queue: Default::default(), - video: DOMRefCell::new(None), + video: DomRefCell::new(None), } } |