From c87a4dd788b46daf04589c903e1b2afe45b72831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Tue, 3 Mar 2020 11:27:35 +0100 Subject: [PATCH] Remove unnecessary fragment rect clone --- components/layout_2020/display_list/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout_2020/display_list/mod.rs b/components/layout_2020/display_list/mod.rs index 49d6f4f16435..871f23de19ac 100644 --- a/components/layout_2020/display_list/mod.rs +++ b/components/layout_2020/display_list/mod.rs @@ -124,7 +124,7 @@ impl Fragment { return; } - let mut common = builder.common_properties(rect.clone().to_webrender()); + let mut common = builder.common_properties(rect.to_webrender()); common.hit_info = hit_info(&fragment.parent_style, fragment.tag, Cursor::Text); let color = fragment.parent_style.clone_color();