Bump euclid to 0.13 and heapsize to 0.4

This commit is contained in:
Bastien Orivel 2017-05-31 01:03:30 +02:00
parent b584944f17
commit 0a254b0306
30 changed files with 193 additions and 191 deletions

View file

@ -20,7 +20,7 @@ debugmozjs = ["libservo/debugmozjs"]
[dependencies]
compositing = {path = "../../components/compositing"}
devtools = {path = "../../components/devtools"}
euclid = "0.11"
euclid = "0.13"
gleam = "0.4"
glutin_app = {path = "../glutin"}
libc = "0.2"

View file

@ -11,7 +11,7 @@ path = "lib.rs"
[dependencies]
bitflags = "0.7"
compositing = {path = "../../components/compositing"}
euclid = "0.11"
euclid = "0.13"
gleam = "0.4"
log = "0.3.5"
msg = {path = "../../components/msg"}

View file

@ -222,7 +222,7 @@ impl Window {
parent: Option<glutin::WindowID>) -> Rc<Window> {
let win_size: TypedSize2D<u32, DevicePixel> =
(window_size.to_f32() * window_creation_scale_factor())
.to_uint().cast().expect("Window size should fit in u32");
.to_usize().cast().expect("Window size should fit in u32");
let width = win_size.to_untyped().width;
let height = win_size.to_untyped().height;