diff options
-rw-r--r-- | src/components/main/constellation.rs | 10 |
1 files changed, 1 insertions, 9 deletions
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<Vec<ChildFrameTree>>, } +#[deriving(Clone)] struct ChildFrameTree { frame_tree: Rc<FrameTree>, /// Clipping rect representing the size and position, in page coordinates, of the visible @@ -65,15 +66,6 @@ struct ChildFrameTree { pub rect: Option<Rect<f32>>, } -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<SendableChildFrameTree>, |