diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2017-10-17 09:39:20 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2017-10-17 11:24:57 -0700 |
commit | efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (patch) | |
tree | 66fa87d72ee1c1254baf153756888c49c3d2692f /components/script_traits/lib.rs | |
parent | aa3122e7d1beb6c72868baf80d565b0760641b1d (diff) | |
download | servo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.tar.gz servo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.zip |
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.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index e8081c9eeaf..6988b758646 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -158,7 +158,7 @@ pub struct LoadData { #[derive(Clone, Debug, Deserialize, Serialize)] pub enum JsEvalResult { /// The js evaluation had a non-string result, 204 status code. - /// https://html.spec.whatwg.org/multipage/#navigate 12.11 + /// <https://html.spec.whatwg.org/multipage/#navigate> 12.11 NoContent, /// The js evaluation had a string result. Ok(Vec<u8>) @@ -221,8 +221,9 @@ pub enum DiscardBrowsingContext { /// A document is active if it is the current active document in its session history, /// it is fuly active if it is active and all of its ancestors are active, /// and it is inactive otherwise. -/// https://html.spec.whatwg.org/multipage/#active-document -/// https://html.spec.whatwg.org/multipage/#fully-active +/// +/// * <https://html.spec.whatwg.org/multipage/#active-document> +/// * <https://html.spec.whatwg.org/multipage/#fully-active> #[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, HeapSizeOf, PartialEq, Serialize)] pub enum DocumentActivity { /// An inactive document @@ -402,7 +403,7 @@ pub enum TouchEventType { /// An opaque identifier for a touch point. /// -/// http://w3c.github.io/touch-events/#widl-Touch-identifier +/// <http://w3c.github.io/touch-events/#widl-Touch-identifier> #[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)] pub struct TouchId(pub i32); @@ -722,7 +723,7 @@ pub struct ScrollState { #[derive(Clone, Copy, Deserialize, HeapSizeOf, Serialize)] pub struct WindowSizeData { /// The size of the initial layout viewport, before parsing an - /// http://www.w3.org/TR/css-device-adapt/#initial-viewport + /// <http://www.w3.org/TR/css-device-adapt/#initial-viewport> pub initial_viewport: TypedSize2D<f32, CSSPixel>, /// The resolution of the window in dppx, not including any "pinch zoom" factor. @@ -853,7 +854,7 @@ impl From<RecvTimeoutError> for PaintWorkletError { /// Execute paint code in the worklet thread pool. pub trait Painter: SpeculativePainter { - /// https://drafts.css-houdini.org/css-paint-api/#draw-a-paint-image + /// <https://drafts.css-houdini.org/css-paint-api/#draw-a-paint-image> fn draw_a_paint_image(&self, size: TypedSize2D<f32, CSSPixel>, zoom: ScaleFactor<f32, CSSPixel, DevicePixel>, @@ -869,7 +870,8 @@ impl fmt::Debug for Painter { } /// The result of executing paint code: the image together with any image URLs that need to be loaded. -/// TODO: this should return a WR display list. https://github.com/servo/servo/issues/17497 +/// +/// TODO: this should return a WR display list. <https://github.com/servo/servo/issues/17497> #[derive(Clone, Debug, Deserialize, HeapSizeOf, Serialize)] pub struct DrawAPaintImageResult { /// The image height |