diff options
author | Pyfisch <pyfisch@gmail.com> | 2018-05-05 22:16:23 +0200 |
---|---|---|
committer | Pyfisch <pyfisch@gmail.com> | 2018-05-05 22:16:23 +0200 |
commit | 4b3ccc7c8ca7a33e760088a212ea9f393769adfd (patch) | |
tree | e7f841da2a571cbeabbad43512d3c69fee36d62f /components/layout/fragment.rs | |
parent | 596b53d5f86caea43c4c3c1e12dc4884e32f5ab6 (diff) | |
download | servo-4b3ccc7c8ca7a33e760088a212ea9f393769adfd.tar.gz servo-4b3ccc7c8ca7a33e760088a212ea9f393769adfd.zip |
Pass Rect<Au> by value and not by reference
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.
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r-- | components/layout/fragment.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index dc60ed0566c..a1c84da3569 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -2465,7 +2465,7 @@ impl Fragment { /// Given the stacking-context-relative border box, returns the stacking-context-relative /// content box. - pub fn stacking_relative_content_box(&self, stacking_relative_border_box: &Rect<Au>) + pub fn stacking_relative_content_box(&self, stacking_relative_border_box: Rect<Au>) -> Rect<Au> { let border_padding = self.border_padding.to_physical(self.style.writing_mode); Rect::new(Point2D::new(stacking_relative_border_box.origin.x + border_padding.left, |