diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-11-06 13:38:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 13:38:52 -0500 |
commit | 6878dbbbeaa59b21a7b3608b6d6a911e88c1e443 (patch) | |
tree | f4a13f7d59c7f72c51e30755d1097595764f96c0 /components/layout/flex.rs | |
parent | 8df38f5e29d0005b792d403c3c54d35748448100 (diff) | |
parent | 8757cf5bc084ee23db643e283ca7e9fef143d810 (diff) | |
download | servo-6878dbbbeaa59b21a7b3608b6d6a911e88c1e443.tar.gz servo-6878dbbbeaa59b21a7b3608b6d6a911e88c1e443.zip |
Auto merge of #22086 - servo:2018-without-stylo, r=SimonSapin
Switch some crates to the 2018 edition
This is the subset of https://github.com/servo/servo/pull/22083 that doesn’t affect Gecko at all, so it isn’t blocked.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22086)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/flex.rs')
-rw-r--r-- | components/layout/flex.rs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/components/layout/flex.rs b/components/layout/flex.rs index 1f40278e76c..3ccbb59a4b4 100644 --- a/components/layout/flex.rs +++ b/components/layout/flex.rs @@ -5,17 +5,18 @@ //! Layout for elements with a CSS `display` property of `flex`. use app_units::{Au, MAX_AU}; -use block::{AbsoluteAssignBSizesTraversal, BlockFlow, MarginsMayCollapseFlag}; -use context::LayoutContext; -use display_list::{DisplayListBuildState, FlexFlowDisplayListBuilding}; -use display_list::StackingContextCollectionState; +use crate::block::{AbsoluteAssignBSizesTraversal, BlockFlow, MarginsMayCollapseFlag}; +use crate::context::LayoutContext; +use crate::display_list::{DisplayListBuildState, FlexFlowDisplayListBuilding}; +use crate::display_list::StackingContextCollectionState; +use crate::floats::FloatKind; +use crate::flow::{Flow, FlowClass, GetBaseFlow, ImmutableFlowUtils, OpaqueFlow, FlowFlags}; +use crate::fragment::{Fragment, FragmentBorderBoxIterator, Overflow}; +use crate::layout_debug; +use crate::model::{AdjoiningMargins, CollapsibleMargins}; +use crate::model::{IntrinsicISizes, MaybeAuto, SizeConstraint}; +use crate::traversal::PreorderFlowTraversal; use euclid::Point2D; -use floats::FloatKind; -use flow::{Flow, FlowClass, GetBaseFlow, ImmutableFlowUtils, OpaqueFlow, FlowFlags}; -use fragment::{Fragment, FragmentBorderBoxIterator, Overflow}; -use layout_debug; -use model::{AdjoiningMargins, CollapsibleMargins}; -use model::{IntrinsicISizes, MaybeAuto, SizeConstraint}; use std::cmp::{max, min}; use std::ops::Range; use style::computed_values::align_content::T as AlignContent; @@ -29,7 +30,6 @@ use style::servo::restyle_damage::ServoRestyleDamage; use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto, LengthOrPercentageOrNone}; use style::values::computed::flex::FlexBasis; use style::values::generics::flex::FlexBasis as GenericFlexBasis; -use traversal::PreorderFlowTraversal; /// The size of an axis. May be a specified size, a min/max /// constraint, or an unlimited size @@ -348,7 +348,7 @@ impl FlexLine { } #[allow(unsafe_code)] -unsafe impl ::flow::HasBaseFlow for FlexFlow {} +unsafe impl crate::flow::HasBaseFlow for FlexFlow {} /// A block with the CSS `display` property equal to `flex`. #[derive(Debug, Serialize)] @@ -1099,7 +1099,7 @@ impl Flow for FlexFlow { self.block_flow.collect_stacking_contexts(state); } - fn repair_style(&mut self, new_style: &::ServoArc<ComputedValues>) { + fn repair_style(&mut self, new_style: &crate::ServoArc<ComputedValues>) { self.block_flow.repair_style(new_style) } |