aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/block.rs6
-rw-r--r--components/layout/display_list/background.rs2
-rw-r--r--components/layout/display_list/webrender_helpers.rs2
-rw-r--r--components/layout/flow_ref.rs8
-rw-r--r--components/layout/multicol.rs2
-rw-r--r--components/layout/query.rs2
-rw-r--r--components/layout/table.rs2
-rw-r--r--components/layout/table_wrapper.rs2
8 files changed, 13 insertions, 13 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs
index eda29b0827d..ce1034f2c63 100644
--- a/components/layout/block.rs
+++ b/components/layout/block.rs
@@ -13,17 +13,17 @@
//! "CSS 2.1" or "CSS 2.2" refers to the editor's draft of the W3C "Cascading Style Sheets Level 2
//! Revision 2 (CSS 2.2) Specification" available here:
//!
-//! http://dev.w3.org/csswg/css2/
+//! <http://dev.w3.org/csswg/css2/>
//!
//! "INTRINSIC" refers to L. David Baron's "More Precise Definitions of Inline Layout and Table
//! Layout" available here:
//!
-//! http://dbaron.org/css/intrinsic/
+//! <http://dbaron.org/css/intrinsic/>
//!
//! "CSS-SIZING" refers to the W3C "CSS Intrinsic & Extrinsic Sizing Module Level 3" document
//! available here:
//!
-//! http://dev.w3.org/csswg/css-sizing/
+//! <http://dev.w3.org/csswg/css-sizing/>
use std::cmp::{max, min};
use std::fmt;
diff --git a/components/layout/display_list/background.rs b/components/layout/display_list/background.rs
index 4c56deabede..5e5738a0f4b 100644
--- a/components/layout/display_list/background.rs
+++ b/components/layout/display_list/background.rs
@@ -40,7 +40,7 @@ pub struct BackgroundPlacement {
/// Obviously it does not work with empty arrays.
///
/// This is used for multiple layered background images.
-/// See: https://drafts.csswg.org/css-backgrounds-3/#layering
+/// See: <https://drafts.csswg.org/css-backgrounds-3/#layering>
pub fn get_cyclic<T>(arr: &[T], index: usize) -> &T {
&arr[index % arr.len()]
}
diff --git a/components/layout/display_list/webrender_helpers.rs b/components/layout/display_list/webrender_helpers.rs
index 2a57789f341..04d8d825e06 100644
--- a/components/layout/display_list/webrender_helpers.rs
+++ b/components/layout/display_list/webrender_helpers.rs
@@ -103,7 +103,7 @@ impl<'a> ClipScrollState<'a> {
}
/// Contentful paint, for the purpose of
-/// https://w3c.github.io/paint-timing/#first-contentful-paint
+/// <https://w3c.github.io/paint-timing/#first-contentful-paint>
/// (i.e. the display list contains items of type text,
/// image, non-white canvas or SVG). Used by metrics.
pub struct IsContentful(pub bool);
diff --git a/components/layout/flow_ref.rs b/components/layout/flow_ref.rs
index 2f7ec0f45bb..b0955e66448 100644
--- a/components/layout/flow_ref.rs
+++ b/components/layout/flow_ref.rs
@@ -5,8 +5,8 @@
//! Reference-counted pointers to flows.
//!
//! Eventually, with dynamically sized types in Rust, much of this code will
-//! be superfluous. This design is largely duplicating logic of Arc<T> and
-//! Weak<T>; please see comments there for details.
+//! be superfluous. This design is largely duplicating logic of `Arc<T>` and
+//! `Weak<T>`; please see comments there for details.
use std::ops::Deref;
use std::sync::{Arc, Weak};
@@ -25,7 +25,7 @@ impl Deref for FlowRef {
impl FlowRef {
/// `FlowRef`s can only be made available to the traversal code.
- /// See https://github.com/servo/servo/issues/14014 for more details.
+ /// See <https://github.com/servo/servo/issues/14014> for more details.
pub fn new(mut r: Arc<dyn Flow>) -> Self {
// This assertion checks that this `FlowRef` does not alias normal `Arc`s.
// If that happens, we're in trouble.
@@ -46,7 +46,7 @@ impl FlowRef {
}
/// WARNING: This should only be used when there is no aliasing:
/// when the traversal ensures that no other threads accesses the same flow at the same time.
- /// See https://github.com/servo/servo/issues/6503
+ /// See <https://github.com/servo/servo/issues/6503>.
/// Use Arc::get_mut instead when possible (e.g. on an Arc that was just created).
#[allow(unsafe_code)]
pub fn deref_mut(this: &mut FlowRef) -> &mut dyn Flow {
diff --git a/components/layout/multicol.rs b/components/layout/multicol.rs
index da3eb50d978..512ae2eae5f 100644
--- a/components/layout/multicol.rs
+++ b/components/layout/multicol.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-//! CSS Multi-column layout http://dev.w3.org/csswg/css-multicol/
+//! CSS Multi-column layout <http://dev.w3.org/csswg/css-multicol/>
use std::cmp::{max, min};
use std::fmt;
diff --git a/components/layout/query.rs b/components/layout/query.rs
index 6309ebb2784..3866d183293 100644
--- a/components/layout/query.rs
+++ b/components/layout/query.rs
@@ -726,7 +726,7 @@ pub fn process_node_scroll_id_request<'dom>(
layout_node.generate_scroll_id(id)
}
-/// https://drafts.csswg.org/cssom-view/#scrolling-area
+/// <https://drafts.csswg.org/cssom-view/#scrolling-area>
pub fn process_scrolling_area_request(
requested_node: Option<OpaqueNode>,
layout_root: &mut dyn Flow,
diff --git a/components/layout/table.rs b/components/layout/table.rs
index 9be1cda28f0..8d25e06c0f6 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -1167,7 +1167,7 @@ impl<'a> Iterator for TableRowIterator<'a> {
/// for each cell
///
/// Used for correctly handling table layers from
-/// https://drafts.csswg.org/css2/tables.html#table-layers
+/// <https://drafts.csswg.org/css2/tables.html#table-layers>
struct TableCellStyleIterator<'table> {
column_styles: Vec<ColumnStyle<'table>>,
row_iterator: TableRowAndGroupIterator<'table>,
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs
index eecca81b35e..af97ec27239 100644
--- a/components/layout/table_wrapper.rs
+++ b/components/layout/table_wrapper.rs
@@ -7,7 +7,7 @@
//! This follows the "More Precise Definitions of Inline Layout and Table Layout" proposal written
//! by L. David Baron (Mozilla) here:
//!
-//! http://dbaron.org/css/intrinsic/
+//! <http://dbaron.org/css/intrinsic/>
//!
//! Hereafter this document is referred to as INTRINSIC.