diff options
author | Michael Wu <mwu@mozilla.com> | 2015-04-06 19:27:56 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-06-19 18:42:48 -0400 |
commit | 675267b7822d2d6c30c0e36fc22e0191b741b973 (patch) | |
tree | 640b22869e8a7eb7d5657df3074f0b0ccd528c29 /components/script/dom/domrect.rs | |
parent | a256f39796270cd3a5f40f33eaa4e407117b0cc6 (diff) | |
download | servo-675267b7822d2d6c30c0e36fc22e0191b741b973.tar.gz servo-675267b7822d2d6c30c0e36fc22e0191b741b973.zip |
Upgrade to SM 39
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r-- | components/script/dom/domrect.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index 45c325b3a2d..c1870c18cc9 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -5,7 +5,7 @@ use dom::bindings::codegen::Bindings::DOMRectBinding; use dom::bindings::codegen::Bindings::DOMRectBinding::DOMRectMethods; use dom::bindings::global::GlobalRef; -use dom::bindings::js::{JSRef, Temporary}; +use dom::bindings::js::Root; use dom::bindings::num::Finite; use dom::bindings::utils::{Reflector, reflect_dom_object}; use dom::window::Window; @@ -32,15 +32,15 @@ impl DOMRect { } } - pub fn new(window: JSRef<Window>, + pub fn new(window: &Window, top: Au, bottom: Au, - left: Au, right: Au) -> Temporary<DOMRect> { + left: Au, right: Au) -> Root<DOMRect> { reflect_dom_object(box DOMRect::new_inherited(top, bottom, left, right), GlobalRef::Window(window), DOMRectBinding::Wrap) } } -impl<'a> DOMRectMethods for JSRef<'a, DOMRect> { +impl<'a> DOMRectMethods for &'a DOMRect { fn Top(self) -> Finite<f32> { Finite::wrap(self.top) } |