Skip to content

Commit

Permalink
Pass Rect<Au> by value and not by reference
Browse files Browse the repository at this point in the history
Style change in display_list/builder.rs to reduce
the number of & and * found in the code.
Rect<Au> are basically 4 integers so there is no
need to pass by reference.
  • Loading branch information
pyfisch committed May 5, 2018
1 parent 596b53d commit 4b3ccc7
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 123 deletions.
2 changes: 1 addition & 1 deletion components/layout/display_list/background.rs
Expand Up @@ -711,7 +711,7 @@ fn handle_overlapping_radii(size: LayoutSize, radii: BorderRadius) -> BorderRadi
}

pub fn build_border_radius(
abs_bounds: &Rect<Au>,
abs_bounds: Rect<Au>,
border_style: &style_structs::Border,
) -> BorderRadius {
// TODO(cgaebel): Support border radii even in the case of multiple border widths.
Expand Down

0 comments on commit 4b3ccc7

Please sign in to comment.