diff options
Diffstat (limited to 'components/layout/floats.rs')
-rw-r--r-- | components/layout/floats.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/components/layout/floats.rs b/components/layout/floats.rs index 9e8e698e0b5..8b81b3a320c 100644 --- a/components/layout/floats.rs +++ b/components/layout/floats.rs @@ -2,18 +2,20 @@ * 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::FormattingContextType; -use crate::flow::{Flow, FlowFlags, GetBaseFlow, ImmutableFlowUtils}; -use crate::persistent_list::PersistentList; +use std::cmp::{max, min}; +use std::fmt; + use app_units::{Au, MAX_AU}; use log::debug; use serde::Serialize; -use std::cmp::{max, min}; -use std::fmt; use style::computed_values::float::T as StyleFloat; use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode}; use style::values::computed::Size; +use crate::block::FormattingContextType; +use crate::flow::{Flow, FlowFlags, GetBaseFlow, ImmutableFlowUtils}; +use crate::persistent_list::PersistentList; + /// The kind of float: left or right. #[derive(Clone, Copy, Debug, Serialize)] pub enum FloatKind { |