aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2023-09-11 21:16:54 +0200
committerGitHub <noreply@github.com>2023-09-11 19:16:54 +0000
commitaad2dccc9c9f6b89922c07933cfa7087a8cd1ec4 (patch)
tree68dec1a9d53f4ed564843a9580fba70bf90dbef1 /components/layout/inline.rs
parent413da4ca69d3013528c09bbaf38629a72384372d (diff)
downloadservo-aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4.tar.gz
servo-aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4.zip
Strict import formatting (grouping and granularity) (#30325)
* strict imports formatting * Reformat all imports
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r--components/layout/inline.rs47
1 files changed, 25 insertions, 22 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index c09e33a7bac..f0d80bdbc82 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -2,24 +2,11 @@
* 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/. */
-use crate::block::AbsoluteAssignBSizesTraversal;
-use crate::context::{LayoutContext, LayoutFontContext};
-use crate::display_list::items::{DisplayListSection, OpaqueNode};
-use crate::display_list::{
- BorderPaintingMode, DisplayListBuildState, StackingContextCollectionState,
-};
-use crate::floats::{FloatKind, Floats, PlacementInfo};
-use crate::flow::{BaseFlow, Flow, FlowClass, ForceNonfloatedFlag};
-use crate::flow::{EarlyAbsolutePositionInfo, FlowFlags, GetBaseFlow, OpaqueFlow};
-use crate::flow_ref::FlowRef;
-use crate::fragment::FragmentFlags;
-use crate::fragment::SpecificFragmentInfo;
-use crate::fragment::{CoordinateSystem, Fragment, FragmentBorderBoxIterator, Overflow};
-use crate::model::IntrinsicISizesContribution;
-use crate::text;
-use crate::traversal::PreorderFlowTraversal;
-use crate::ServoArc;
-use crate::{layout_debug, layout_debug_scope};
+use std::cmp::max;
+use std::collections::VecDeque;
+use std::sync::Arc;
+use std::{fmt, i32, isize, mem};
+
use app_units::{Au, MIN_AU};
use bitflags::bitflags;
use euclid::default::{Point2D, Rect, Size2D};
@@ -30,10 +17,6 @@ use range::{int_range_index, Range, RangeIndex};
use script_layout_interface::wrapper_traits::PseudoElementType;
use serde::Serialize;
use servo_geometry::MaxRect;
-use std::cmp::max;
-use std::collections::VecDeque;
-use std::sync::Arc;
-use std::{fmt, i32, isize, mem};
use style::computed_values::display::T as Display;
use style::computed_values::overflow_x::T as StyleOverflow;
use style::computed_values::position::T as Position;
@@ -48,6 +31,26 @@ use style::values::generics::box_::VerticalAlignKeyword;
use style::values::specified::text::TextOverflowSide;
use unicode_bidi as bidi;
+use crate::block::AbsoluteAssignBSizesTraversal;
+use crate::context::{LayoutContext, LayoutFontContext};
+use crate::display_list::items::{DisplayListSection, OpaqueNode};
+use crate::display_list::{
+ BorderPaintingMode, DisplayListBuildState, StackingContextCollectionState,
+};
+use crate::floats::{FloatKind, Floats, PlacementInfo};
+use crate::flow::{
+ BaseFlow, EarlyAbsolutePositionInfo, Flow, FlowClass, FlowFlags, ForceNonfloatedFlag,
+ GetBaseFlow, OpaqueFlow,
+};
+use crate::flow_ref::FlowRef;
+use crate::fragment::{
+ CoordinateSystem, Fragment, FragmentBorderBoxIterator, FragmentFlags, Overflow,
+ SpecificFragmentInfo,
+};
+use crate::model::IntrinsicISizesContribution;
+use crate::traversal::PreorderFlowTraversal;
+use crate::{layout_debug, layout_debug_scope, text, ServoArc};
+
/// `Line`s are represented as offsets into the child list, rather than
/// as an object that "owns" fragments. Choosing a different set of line
/// breaks requires a new list of offsets, and possibly some splitting and