diff options
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r-- | components/script/dom/domrect.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index 8ab7daa2b57..6836b12127f 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -28,7 +28,14 @@ impl DOMRect { Self::new_with_proto(global, None, x, y, width, height) } - fn new_with_proto(global: &GlobalScope, proto: Option<HandleObject>, x: f64, y: f64, width: f64, height: f64) -> DomRoot<DOMRect> { + fn new_with_proto( + global: &GlobalScope, + proto: Option<HandleObject>, + x: f64, + y: f64, + width: f64, + height: f64, + ) -> DomRoot<DOMRect> { reflect_dom_object2( Box::new(DOMRect::new_inherited(x, y, width, height)), global, |