rustdoc: Fix two warnings in components/layout_2020 (#31712)

* 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>
This commit is contained in:
Rhea-Eve 2024-03-18 04:33:15 -04:00 committed by GitHub
parent 99ddab43e8
commit 1ab8fa2895
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -32,7 +32,8 @@ use crate::style_ext::PaddingBorderMargin;
use crate::ContainingBlock; use crate::ContainingBlock;
pub(super) struct LineMetrics { 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, pub block_offset: Length,
/// The block size of this line. /// The block size of this line.

View file

@ -59,8 +59,8 @@ pub(crate) enum NonReplacedFormattingContextContents {
// Other layout modes go here // Other layout modes go here
} }
/// The baselines of a layout or a [`BoxFragment`]. Some layout uses the first and some layout uses /// The baselines of a layout or a [`crate::fragment_tree::BoxFragment`]. Some layout
/// the last. /// uses the first and some layout uses the last.
#[derive(Debug, Default, Serialize)] #[derive(Debug, Default, Serialize)]
pub(crate) struct Baselines { pub(crate) struct Baselines {
pub first: Option<Au>, pub first: Option<Au>,