diff options
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r-- | components/layout/model.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs index 4e4e5cad399..a031a5b0537 100644 --- a/components/layout/model.rs +++ b/components/layout/model.rs @@ -18,6 +18,7 @@ use std::cmp::{max, min}; use std::fmt; /// A collapsible margin. See CSS 2.1 § 8.3.1. +#[deriving(Copy)] pub struct AdjoiningMargins { /// The value of the greatest positive margin. pub most_positive: Au, @@ -60,6 +61,7 @@ impl AdjoiningMargins { } /// Represents the block-start and block-end margins of a flow with collapsible margins. See CSS 2.1 § 8.3.1. +#[deriving(Copy)] pub enum CollapsibleMargins { /// Margins may not collapse with this flow. None(Au, Au), @@ -237,6 +239,7 @@ impl MarginCollapseInfo { } } +#[deriving(Copy)] pub enum MarginCollapseState { AccumulatingCollapsibleTopMargin, AccumulatingMarginIn, @@ -322,7 +325,7 @@ impl IntrinsicISizesContribution { } /// Useful helper data type when computing values for blocks and positioned elements. -#[deriving(PartialEq, Show)] +#[deriving(Copy, PartialEq, Show)] pub enum MaybeAuto { Auto, Specified(Au), |