diff options
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r-- | components/layout/model.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs index ebd70dcae84..8aecee621ee 100644 --- a/components/layout/model.rs +++ b/components/layout/model.rs @@ -19,7 +19,7 @@ use util::geometry::Au; use util::logical_geometry::LogicalMargin; /// A collapsible margin. See CSS 2.1 § 8.3.1. -#[derive(Copy)] +#[derive(Copy, Clone)] pub struct AdjoiningMargins { /// The value of the greatest positive margin. pub most_positive: Au, @@ -62,7 +62,7 @@ impl AdjoiningMargins { } /// Represents the block-start and block-end margins of a flow with collapsible margins. See CSS 2.1 § 8.3.1. -#[derive(Copy)] +#[derive(Copy, Clone)] pub enum CollapsibleMargins { /// Margins may not collapse with this flow. None(Au, Au), @@ -260,7 +260,7 @@ impl MarginCollapseInfo { } } -#[derive(Copy)] +#[derive(Copy, Clone)] pub enum MarginCollapseState { AccumulatingCollapsibleTopMargin, AccumulatingMarginIn, @@ -357,7 +357,7 @@ impl IntrinsicISizesContribution { } /// Useful helper data type when computing values for blocks and positioned elements. -#[derive(Copy, PartialEq, Debug)] +#[derive(Copy, Clone, PartialEq, Debug)] pub enum MaybeAuto { Auto, Specified(Au), |