mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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.
This commit is contained in:
parent
596b53d5f8
commit
4b3ccc7c8c
4 changed files with 120 additions and 123 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue