aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/float_context.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-08-09 13:41:10 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-08-15 13:55:40 -0700
commitffe60ea02704c0bd4545a194bff3f2feafd0133c (patch)
tree97f40c907aae08235e4bc856681cd1eb6df5a274 /src/components/main/layout/float_context.rs
parent907d9f23cf8ab5be112376199c3c57ba9e4a3035 (diff)
downloadservo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.tar.gz
servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.zip
Trait changes, and eliminate 'copy'
Diffstat (limited to 'src/components/main/layout/float_context.rs')
-rw-r--r--src/components/main/layout/float_context.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/main/layout/float_context.rs b/src/components/main/layout/float_context.rs
index 5528d5ae8f7..60bb9595615 100644
--- a/src/components/main/layout/float_context.rs
+++ b/src/components/main/layout/float_context.rs
@@ -10,6 +10,7 @@ use std::util::replace;
use std::vec;
use std::i32::max_value;
+#[deriving(Clone)]
pub enum FloatType{
FloatLeft,
FloatRight
@@ -28,6 +29,7 @@ struct FloatContextBase{
offset: Point2D<Au>
}
+#[deriving(Clone)]
struct FloatData{
bounds: Rect<Au>,
f_type: FloatType