diff options
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r-- | components/script/dom/domrect.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index cc2643ac4b5..f9fdf9b79cd 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -32,11 +32,11 @@ impl DOMRect { } } - pub fn new(window: &JSRef<Window>, + pub fn new(window: JSRef<Window>, top: Au, bottom: Au, left: Au, right: Au) -> Temporary<DOMRect> { reflect_dom_object(box DOMRect::new_inherited(top, bottom, left, right), - &Window(*window), DOMRectBinding::Wrap) + &Window(window), DOMRectBinding::Wrap) } } |