aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/clientrect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/clientrect.rs')
-rw-r--r--src/components/script/dom/clientrect.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/components/script/dom/clientrect.rs b/src/components/script/dom/clientrect.rs
index cf6eaee67fc..b80d6a8853b 100644
--- a/src/components/script/dom/clientrect.rs
+++ b/src/components/script/dom/clientrect.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::Bindings::ClientRectBinding;
+use dom::bindings::codegen::Bindings::ClientRectBinding::ClientRectMethods;
use dom::bindings::global::Window;
use dom::bindings::js::{JS, JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
@@ -41,15 +42,6 @@ impl ClientRect {
}
}
-pub trait ClientRectMethods {
- fn Top(&self) -> f32;
- fn Bottom(&self) -> f32;
- fn Left(&self) -> f32;
- fn Right(&self) -> f32;
- fn Width(&self) -> f32;
- fn Height(&self) -> f32;
-}
-
impl<'a> ClientRectMethods for JSRef<'a, ClientRect> {
fn Top(&self) -> f32 {
self.top