diff options
-rw-r--r-- | components/gfx/display_list/mod.rs | 6 | ||||
-rw-r--r-- | components/gfx/paint_task.rs | 2 | ||||
-rw-r--r-- | components/layout/model.rs | 4 | ||||
-rw-r--r-- | components/servo/Cargo.lock | 4 | ||||
-rw-r--r-- | components/util/mem.rs | 4 | ||||
-rw-r--r-- | ports/cef/Cargo.lock | 4 | ||||
-rw-r--r-- | ports/gonk/Cargo.lock | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index 74975472418..af60a7d7737 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -245,7 +245,7 @@ pub struct StackingContext { pub blend_mode: mix_blend_mode::T, /// A transform to be applied to this stacking context. - pub transform: Matrix4, + pub transform: Matrix4<AzFloat>, } impl StackingContext { @@ -255,7 +255,7 @@ impl StackingContext { bounds: &Rect<Au>, overflow: &Rect<Au>, z_index: i32, - transform: &Matrix4, + transform: &Matrix4<AzFloat>, filters: filter::T, blend_mode: mix_blend_mode::T, layer: Option<Arc<PaintLayer>>) @@ -276,7 +276,7 @@ impl StackingContext { pub fn optimize_and_draw_into_context(&self, paint_context: &mut PaintContext, tile_bounds: &Rect<AzFloat>, - transform: &Matrix4, + transform: &Matrix4<AzFloat>, clip_rect: Option<&Rect<Au>>) { let transform = transform.mul(&self.transform); let temporary_draw_target = diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index a59be2a54b5..fd7575a14fe 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -622,7 +622,7 @@ impl WorkerThread { stacking_context.overflow.origin.y.to_f32_px())); // Apply the translation to paint the tile we want. - let matrix: Matrix4 = identity(); + let matrix: Matrix4<AzFloat> = identity(); let matrix = matrix.scale(scale as AzFloat, scale as AzFloat, 1.0); let matrix = matrix.translate(-tile_bounds.origin.x as AzFloat, -tile_bounds.origin.y as AzFloat, diff --git a/components/layout/model.rs b/components/layout/model.rs index b5adaf1a681..ad6dd66cf17 100644 --- a/components/layout/model.rs +++ b/components/layout/model.rs @@ -426,11 +426,11 @@ pub fn padding_from_style(style: &ComputedValues, containing_block_inline_size: } pub trait ToGfxMatrix { - fn to_gfx_matrix(&self) -> Matrix4; + fn to_gfx_matrix(&self) -> Matrix4<f32>; } impl ToGfxMatrix for ComputedMatrix { - fn to_gfx_matrix(&self) -> Matrix4 { + fn to_gfx_matrix(&self) -> Matrix4<f32> { Matrix4 { m11: self.m11 as f32, m12: self.m12 as f32, m13: self.m13 as f32, m14: self.m14 as f32, m21: self.m21 as f32, m22: self.m22 as f32, m23: self.m23 as f32, m24: self.m24 as f32, diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index e8744a17790..a50cd0a04f4 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -385,7 +385,7 @@ dependencies = [ [[package]] name = "geom" version = "0.1.0" -source = "git+https://github.com/servo/rust-geom#1b49f8ce1c4e8ade720dd940d1964c657a96817f" +source = "git+https://github.com/servo/rust-geom#270d0246b79fbf86fc2938c4952cae74e4025fcf" dependencies = [ "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", @@ -624,7 +624,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#ca37ca2949c46f91e37f28fa31ad6c1e8036f2d0" +source = "git+https://github.com/servo/rust-layers#36d02af1bf0d37894fdb77ab3c1860a6e7b554ae" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.0.1 (git+https://github.com/servo/cgl-rs)", diff --git a/components/util/mem.rs b/components/util/mem.rs index 5ecd511bdcf..0ca80b51563 100644 --- a/components/util/mem.rs +++ b/components/util/mem.rs @@ -193,7 +193,7 @@ known_heap_size!(0, u8, u16, u32, u64, usize); known_heap_size!(0, i8, i16, i32, i64, isize); known_heap_size!(0, bool, f32, f64); -known_heap_size!(0, Rect<T>, Point2D<T>, Size2D<T>, Matrix2D<T>, SideOffsets2D<T>); +known_heap_size!(0, Rect<T>, Point2D<T>, Size2D<T>, Matrix2D<T>, SideOffsets2D<T>, Matrix4<T>); -known_heap_size!(0, Au, Color, Cursor, Matrix4); +known_heap_size!(0, Au, Color, Cursor); known_heap_size!(0, Range<T>); diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock index cd24b4adfbd..e88d63376a6 100644 --- a/ports/cef/Cargo.lock +++ b/ports/cef/Cargo.lock @@ -384,7 +384,7 @@ dependencies = [ [[package]] name = "geom" version = "0.1.0" -source = "git+https://github.com/servo/rust-geom#1b49f8ce1c4e8ade720dd940d1964c657a96817f" +source = "git+https://github.com/servo/rust-geom#270d0246b79fbf86fc2938c4952cae74e4025fcf" dependencies = [ "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", @@ -616,7 +616,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#ca37ca2949c46f91e37f28fa31ad6c1e8036f2d0" +source = "git+https://github.com/servo/rust-layers#36d02af1bf0d37894fdb77ab3c1860a6e7b554ae" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.0.1 (git+https://github.com/servo/cgl-rs)", diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 4a98b5b6318..0dae49287fa 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -363,7 +363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "geom" version = "0.1.0" -source = "git+https://github.com/servo/rust-geom#1b49f8ce1c4e8ade720dd940d1964c657a96817f" +source = "git+https://github.com/servo/rust-geom#270d0246b79fbf86fc2938c4952cae74e4025fcf" dependencies = [ "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", @@ -550,7 +550,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#ca37ca2949c46f91e37f28fa31ad6c1e8036f2d0" +source = "git+https://github.com/servo/rust-layers#36d02af1bf0d37894fdb77ab3c1860a6e7b554ae" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.0.1 (git+https://github.com/servo/cgl-rs)", |