diff --git a/src/components/main/constellation.rs b/src/components/main/constellation.rs index ab3ac8043dc..e487ece1246 100644 --- a/src/components/main/constellation.rs +++ b/src/components/main/constellation.rs @@ -58,6 +58,7 @@ struct FrameTree { pub children: RefCell>, } +#[deriving(Clone)] struct ChildFrameTree { frame_tree: Rc, /// Clipping rect representing the size and position, in page coordinates, of the visible @@ -65,15 +66,6 @@ struct ChildFrameTree { pub rect: Option>, } -impl Clone for ChildFrameTree { - fn clone(&self) -> ChildFrameTree { - ChildFrameTree { - frame_tree: self.frame_tree.clone(), - rect: self.rect.clone(), - } - } -} - pub struct SendableFrameTree { pub pipeline: CompositionPipeline, pub children: Vec,