From efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 17 Oct 2017 09:39:20 -0700 Subject: Fix commonmark Markdown warnings in docs, part 1 Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments. --- components/script/dom/htmlmediaelement.rs | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'components/script/dom/htmlmediaelement.rs') diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 197a7b1a5e8..f264bde0206 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -54,29 +54,29 @@ use time::{self, Timespec, Duration}; // media element event task source. pub struct HTMLMediaElement { htmlelement: HTMLElement, - /// https://html.spec.whatwg.org/multipage/#dom-media-networkstate + /// network_state: Cell, - /// https://html.spec.whatwg.org/multipage/#dom-media-readystate + /// ready_state: Cell, - /// https://html.spec.whatwg.org/multipage/#dom-media-srcobject + /// src_object: MutNullableDom, - /// https://html.spec.whatwg.org/multipage/#dom-media-currentsrc + /// current_src: DomRefCell, /// Incremented whenever tasks associated with this element are cancelled. generation_id: Cell, - /// https://html.spec.whatwg.org/multipage/#fire-loadeddata + /// /// /// Reset to false every time the load algorithm is invoked. fired_loadeddata_event: Cell, - /// https://html.spec.whatwg.org/multipage/#dom-media-error + /// error: MutNullableDom, - /// https://html.spec.whatwg.org/multipage/#dom-media-paused + /// paused: Cell, - /// https://html.spec.whatwg.org/multipage/#attr-media-autoplay + /// autoplaying: Cell, - /// https://html.spec.whatwg.org/multipage/#delaying-the-load-event-flag + /// delaying_the_load_event_flag: DomRefCell>, - /// https://html.spec.whatwg.org/multipage/#list-of-pending-play-promises + /// #[ignore_heap_size_of = "promises are hard"] pending_play_promises: DomRefCell>>, /// Play promises which are soon to be fulfilled by a queued task. @@ -84,7 +84,7 @@ pub struct HTMLMediaElement { in_flight_play_promises_queue: DomRefCell]>, ErrorResult)>>, } -/// https://html.spec.whatwg.org/multipage/#dom-media-networkstate +/// #[derive(Clone, Copy, HeapSizeOf, JSTraceable, PartialEq)] #[repr(u8)] pub enum NetworkState { @@ -94,7 +94,7 @@ pub enum NetworkState { NoSource = HTMLMediaElementConstants::NETWORK_NO_SOURCE as u8, } -/// https://html.spec.whatwg.org/multipage/#dom-media-readystate +/// #[derive(Clone, Copy, HeapSizeOf, JSTraceable, PartialEq, PartialOrd)] #[repr(u8)] enum ReadyState { @@ -145,7 +145,7 @@ impl HTMLMediaElement { /// Nothing happens if the element was already delaying the load event and /// we pass true to that method again. /// - /// https://html.spec.whatwg.org/multipage/#delaying-the-load-event-flag + /// fn delay_load_event(&self, delay: bool) { let mut blocker = self.delaying_the_load_event_flag.borrow_mut(); if delay && blocker.is_none() { @@ -155,7 +155,7 @@ impl HTMLMediaElement { } } - /// https://html.spec.whatwg.org/multipage/#dom-media-play + /// // FIXME(nox): Move this back to HTMLMediaElementMethods::Play once // Rc doesn't require #[allow(unrooted_must_root)] anymore. fn play(&self, promise: &Rc) { @@ -236,7 +236,7 @@ impl HTMLMediaElement { // Not applicable here, the promise is returned from Play. } - /// https://html.spec.whatwg.org/multipage/#internal-pause-steps + /// fn internal_pause_steps(&self) { // Step 1. self.autoplaying.set(false); @@ -807,7 +807,7 @@ impl HTMLMediaElement { /// Handles insertion of `source` children. /// - /// https://html.spec.whatwg.org/multipage/#the-source-element:nodes-are-inserted + /// pub fn handle_source_child_insertion(&self) { if self.upcast::().has_attribute(&local_name!("src")) { return; -- cgit v1.2.3