mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove some unnecessary casts.
This commit is contained in:
parent
5f0c55cefb
commit
6bf830f663
3 changed files with 13 additions and 13 deletions
|
@ -546,8 +546,8 @@ impl WorkerThread {
|
|||
// Apply a translation to start at the boundaries of the stacking context, since the
|
||||
// layer's origin starts at its overflow rect's origin.
|
||||
let tile_bounds = tile.page_rect.translate(
|
||||
&Point2D(stacking_context.overflow.origin.x.to_f64_px() as AzFloat,
|
||||
stacking_context.overflow.origin.y.to_f64_px() as AzFloat));
|
||||
&Point2D(stacking_context.overflow.origin.x.to_f32_px(),
|
||||
stacking_context.overflow.origin.y.to_f32_px()));
|
||||
|
||||
// Apply the translation to paint the tile we want.
|
||||
let matrix: Matrix2D<AzFloat> = Matrix2D::identity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue