mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
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:
parent
99ddab43e8
commit
1ab8fa2895
2 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue