mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Library changes
This commit is contained in:
parent
ffe60ea027
commit
be061a9aa0
45 changed files with 167 additions and 183 deletions
|
@ -10,7 +10,6 @@ use js::jsapi::{JSObject, JSContext, JSVal};
|
|||
use js::glue::RUST_OBJECT_TO_JSVAL;
|
||||
|
||||
use std::cast;
|
||||
use std::f32;
|
||||
|
||||
pub struct ClientRect {
|
||||
wrapper: WrapperCache,
|
||||
|
@ -54,11 +53,11 @@ impl ClientRect {
|
|||
}
|
||||
|
||||
pub fn Width(&self) -> f32 {
|
||||
f32::abs(self.right - self.left)
|
||||
(self.right - self.left).abs()
|
||||
}
|
||||
|
||||
pub fn Height(&self) -> f32 {
|
||||
f32::abs(self.bottom - self.top)
|
||||
(self.bottom - self.top).abs()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue