Skip to content

Commit

Permalink
rustdoc: Fix two warnings in components/layout_2020 (#31712)
Browse files Browse the repository at this point in the history
* Fix BoxFragment reference.

Signed-off-by: Rhea Karty <rheakarty@gmail.com>

* Fix reference to InlineFormattingContext.

Signed-off-by: Rhea Karty <rheakarty@gmail.com>

* Rewrap lines to avoid long length

* Remove trailing whitesapce

---------

Signed-off-by: Rhea Karty <rheakarty@gmail.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
  • Loading branch information
Rhea-Eve and mrobinson committed Mar 18, 2024
1 parent 99ddab4 commit 1ab8fa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/layout_2020/flow/line.rs
Expand Up @@ -32,7 +32,8 @@ use crate::style_ext::PaddingBorderMargin;
use crate::ContainingBlock;

pub(super) struct LineMetrics {
/// The block offset of the line start in the containing [`InlineFormattingContext`].
/// The block offset of the line start in the containing
/// [`crate::flow::InlineFormattingContext`].
pub block_offset: Length,

/// The block size of this line.
Expand Down
4 changes: 2 additions & 2 deletions components/layout_2020/formatting_contexts.rs
Expand Up @@ -59,8 +59,8 @@ pub(crate) enum NonReplacedFormattingContextContents {
// Other layout modes go here
}

/// The baselines of a layout or a [`BoxFragment`]. Some layout uses the first and some layout uses
/// the last.
/// The baselines of a layout or a [`crate::fragment_tree::BoxFragment`]. Some layout
/// uses the first and some layout uses the last.
#[derive(Debug, Default, Serialize)]
pub(crate) struct Baselines {
pub first: Option<Au>,
Expand Down

0 comments on commit 1ab8fa2

Please sign in to comment.