rustdoc: Fix errors in components and ports (#31654)

* Fixed warnings in components/gfx/text/shaping/harfbuzz-rs  components/layout_2020/fragment_tree  ports/servoshell/minibrowser.rs

* Fixed warnings in components/gfx/text/shaping/harfbuzz-rs  components/layout_2020/fragment_tree  ports/servoshell/minibrowser.rs.

* Update minibrowser.rs

Returned "if" back to "iff"

* Update minibrowser.rs

Changed ```BrowserManager``` to ```WebViewManager```

* Update fragment.rs

Changed ```[SequentialLayoutState]``` to ```[crate::flow::float::SequentialLayoutState]```

* Update fragment.rs

Balanced the length of paragraph lines in fragment.rs

* Fix tidy errors

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Tumuhairwe 2024-03-15 19:24:11 +03:00 committed by GitHub
parent 39f660f520
commit 4cd3c056e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -47,7 +47,7 @@ pub struct ShapedGlyphEntry {
}
impl ShapedGlyphData {
/// Create a new [`SharedGlyphData`] from the given HarfBuzz buffer.
/// Create a new [`ShapedGlyphData`] from the given HarfBuzz buffer.
///
/// # Safety
///

View file

@ -29,9 +29,9 @@ pub(crate) enum Fragment {
Box(BoxFragment),
/// Floating content. A floated fragment is very similar to a normal
/// [BoxFragment] but it isn't positioned using normal in block flow
/// positioning rules (margin collapse, etc). Instead, they are laid out by
/// the [SequentialLayoutState] of their float containing block formatting
/// context.
/// positioning rules (margin collapse, etc). Instead, they are laid
/// out by the [crate::flow::float::SequentialLayoutState] of their
/// float containing block formatting context.
Float(BoxFragment),
Positioning(PositioningFragment),
/// Absolute and fixed position fragments are hoisted up so that they

View file

@ -14,7 +14,7 @@ use crate::cell::ArcRefCell;
use crate::geom::{LogicalRect, PhysicalRect};
/// Can contain child fragments with relative coordinates, but does not contribute to painting
/// itself. [`PositioningFragments`] may be completely anonymous, or just non-painting Fragments
/// itself. [`PositioningFragment`]s may be completely anonymous, or just non-painting Fragments
/// generated by boxes.
#[derive(Serialize)]
pub(crate) struct PositioningFragment {

View file

@ -295,7 +295,7 @@ impl Minibrowser {
}
}
/// Updates the location field from the given [BrowserManager], unless the user has started
/// Updates the location field from the given [WebViewManager], unless the user has started
/// editing it without clicking Go, returning true iff it has changed (needing an egui update).
pub fn update_location_in_toolbar(
&mut self,