diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-10-17 16:04:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 16:04:10 -0500 |
commit | 0e62a5829b7c29ae2667a21a439aff1e89201bf3 (patch) | |
tree | 9732ccec4cccf1ebf7afa9027ad82d29ed064ea1 /components/script_traits/lib.rs | |
parent | 00e2a1c62a04ae337f9008dcea8e265edd2d3ef4 (diff) | |
parent | efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (diff) | |
download | servo-0e62a5829b7c29ae2667a21a439aff1e89201bf3.tar.gz servo-0e62a5829b7c29ae2667a21a439aff1e89201bf3.zip |
Auto merge of #18924 - mbrubeck:doc, r=Manishearth
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.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they are doc formatting changes only
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18924)
<!-- Reviewable:end -->
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 |