mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Bump euclid to 0.13 and heapsize to 0.4
This commit is contained in:
parent
b584944f17
commit
0a254b0306
30 changed files with 193 additions and 191 deletions
|
@ -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"
|
||||
|
|
|
@ -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"}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue