aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domrectreadonly.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domrectreadonly.rs')
-rw-r--r--components/script/dom/domrectreadonly.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/domrectreadonly.rs b/components/script/dom/domrectreadonly.rs
index a9d87ec3947..ef0c7ce2c67 100644
--- a/components/script/dom/domrectreadonly.rs
+++ b/components/script/dom/domrectreadonly.rs
@@ -4,7 +4,6 @@
use dom::bindings::codegen::Bindings::DOMRectReadOnlyBinding::{DOMRectReadOnlyMethods, Wrap};
use dom::bindings::error::Fallible;
-use dom::bindings::global::GlobalRef;
use dom::bindings::js::Root;
use dom::bindings::reflector::{Reflector, reflect_dom_object};
use dom::globalscope::GlobalScope;
@@ -41,13 +40,13 @@ impl DOMRectReadOnly {
Wrap)
}
- pub fn Constructor(global: GlobalRef,
+ pub fn Constructor(global: &GlobalScope,
x: f64,
y: f64,
width: f64,
height: f64)
-> Fallible<Root<DOMRectReadOnly>> {
- Ok(DOMRectReadOnly::new(global.as_global_scope(), x, y, width, height))
+ Ok(DOMRectReadOnly::new(global, x, y, width, height))
}
pub fn set_x(&self, value: f64) {