diff options
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, |