aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/model.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-04-28 19:42:46 +0200
committerMs2ger <ms2ger@gmail.com>2015-04-28 23:31:10 +0200
commit903305416a8fd4eef75960f9e83491adaaa519e8 (patch)
tree445f64c0a52c3b554ffc50ee96fe54ea11f32f86 /components/layout/model.rs
parentb6fc83cf2b4b426548bb9d10e9493f2b111bd617 (diff)
downloadservo-903305416a8fd4eef75960f9e83491adaaa519e8.tar.gz
servo-903305416a8fd4eef75960f9e83491adaaa519e8.zip
Implement Clone for Copy types.
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r--components/layout/model.rs8
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),