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/inline.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/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index e328ee3e37a..83961219e37 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -1617,7 +1617,7 @@ impl Flow for InlineFlow { .relative_containing_block_mode, CoordinateSystem::Parent); let stacking_relative_content_box = - fragment.stacking_relative_content_box(&stacking_relative_border_box); + fragment.stacking_relative_content_box(stacking_relative_border_box); let is_positioned = fragment.is_positioned(); match fragment.specific { |