Skip to content

Commit

Permalink
Remove unnecessary fragment rect clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Mar 23, 2020
1 parent 4fd5484 commit c87a4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/layout_2020/display_list/mod.rs
Expand Up @@ -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();
Expand Down

0 comments on commit c87a4dd

Please sign in to comment.