mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update euclid to 0.10.1
This commit is contained in:
parent
8a75810eba
commit
51768844ed
37 changed files with 281 additions and 280 deletions
|
@ -30,7 +30,7 @@ cookie = {version = "0.2.5", features = ["serialize-rustc"]}
|
|||
cssparser = {version = "0.5.7", features = ["heap_size", "serde-serialization"]}
|
||||
devtools_traits = {path = "../devtools_traits"}
|
||||
encoding = "0.2"
|
||||
euclid = "0.9"
|
||||
euclid = "0.10.1"
|
||||
fnv = "1.0"
|
||||
gfx_traits = {path = "../gfx_traits"}
|
||||
heapsize = "0.3.6"
|
||||
|
@ -48,7 +48,7 @@ mime_guess = "1.8.0"
|
|||
msg = {path = "../msg"}
|
||||
net_traits = {path = "../net_traits"}
|
||||
num-traits = "0.1.32"
|
||||
offscreen_gl_context = "0.3"
|
||||
offscreen_gl_context = "0.4"
|
||||
open = "1.1.1"
|
||||
phf = "0.7.16"
|
||||
phf_macros = "0.7.16"
|
||||
|
|
|
@ -573,7 +573,7 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
|||
}
|
||||
|
||||
let transform = self.state.borrow().transform;
|
||||
self.state.borrow_mut().transform = transform.scale(x as f32, y as f32);
|
||||
self.state.borrow_mut().transform = transform.pre_scaled(x as f32, y as f32);
|
||||
self.update_transform()
|
||||
}
|
||||
|
||||
|
@ -585,9 +585,10 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
|||
|
||||
let (sin, cos) = (angle.sin(), angle.cos());
|
||||
let transform = self.state.borrow().transform;
|
||||
self.state.borrow_mut().transform = transform.mul(&Matrix2D::new(cos as f32, sin as f32,
|
||||
-sin as f32, cos as f32,
|
||||
0.0, 0.0));
|
||||
self.state.borrow_mut().transform = transform.pre_mul(
|
||||
&Matrix2D::row_major(cos as f32, sin as f32,
|
||||
-sin as f32, cos as f32,
|
||||
0.0, 0.0));
|
||||
self.update_transform()
|
||||
}
|
||||
|
||||
|
@ -598,7 +599,7 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
|||
}
|
||||
|
||||
let transform = self.state.borrow().transform;
|
||||
self.state.borrow_mut().transform = transform.translate(x as f32, y as f32);
|
||||
self.state.borrow_mut().transform = transform.pre_translated(x as f32, y as f32);
|
||||
self.update_transform()
|
||||
}
|
||||
|
||||
|
@ -610,12 +611,8 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
|||
}
|
||||
|
||||
let transform = self.state.borrow().transform;
|
||||
self.state.borrow_mut().transform = transform.mul(&Matrix2D::new(a as f32,
|
||||
b as f32,
|
||||
c as f32,
|
||||
d as f32,
|
||||
e as f32,
|
||||
f as f32));
|
||||
self.state.borrow_mut().transform = transform.pre_mul(
|
||||
&Matrix2D::row_major(a as f32, b as f32, c as f32, d as f32, e as f32, f as f32));
|
||||
self.update_transform()
|
||||
}
|
||||
|
||||
|
@ -626,12 +623,8 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
|||
return;
|
||||
}
|
||||
|
||||
self.state.borrow_mut().transform = Matrix2D::new(a as f32,
|
||||
b as f32,
|
||||
c as f32,
|
||||
d as f32,
|
||||
e as f32,
|
||||
f as f32);
|
||||
self.state.borrow_mut().transform =
|
||||
Matrix2D::row_major(a as f32, b as f32, c as f32, d as f32, e as f32, f as f32);
|
||||
self.update_transform()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue