aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-06-10 14:14:24 -0700
committerPatrick Walton <pcwalton@mimiga.net>2015-06-10 14:14:24 -0700
commit053296e1319239fbfe2842edb31bbf46eb8f28d7 (patch)
tree219c49f7f1a24b0165d1517e9a095adbe6b26035
parent8c943b30ce4759b038b5ae581159481b8a92e801 (diff)
parent8fb29c91e6010d6baec5e0e7e60fba5ea55ff870 (diff)
downloadservo-053296e1319239fbfe2842edb31bbf46eb8f28d7.tar.gz
servo-053296e1319239fbfe2842edb31bbf46eb8f28d7.zip
Merge pull request #6329 from glennw/remove-generic
Updates for changes in rust-geom and rust-layers
-rw-r--r--components/gfx/display_list/mod.rs6
-rw-r--r--components/gfx/paint_task.rs2
-rw-r--r--components/layout/model.rs4
-rw-r--r--components/servo/Cargo.lock4
-rw-r--r--components/util/mem.rs4
-rw-r--r--ports/cef/Cargo.lock4
-rw-r--r--ports/gonk/Cargo.lock4
7 files changed, 14 insertions, 14 deletions
diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs
index af60a7d7737..74975472418 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<AzFloat>,
+ pub transform: Matrix4,
}
impl StackingContext {
@@ -255,7 +255,7 @@ impl StackingContext {
bounds: &Rect<Au>,
overflow: &Rect<Au>,
z_index: i32,
- transform: &Matrix4<AzFloat>,
+ transform: &Matrix4,
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<AzFloat>,
+ transform: &Matrix4,
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 fd7575a14fe..a59be2a54b5 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<AzFloat> = identity();
+ let matrix: Matrix4 = 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 ad6dd66cf17..b5adaf1a681 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<f32>;
+ fn to_gfx_matrix(&self) -> Matrix4;
}
impl ToGfxMatrix for ComputedMatrix {
- fn to_gfx_matrix(&self) -> Matrix4<f32> {
+ fn to_gfx_matrix(&self) -> Matrix4 {
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 a50cd0a04f4..e8744a17790 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#270d0246b79fbf86fc2938c4952cae74e4025fcf"
+source = "git+https://github.com/servo/rust-geom#1b49f8ce1c4e8ade720dd940d1964c657a96817f"
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#36d02af1bf0d37894fdb77ab3c1860a6e7b554ae"
+source = "git+https://github.com/servo/rust-layers#ca37ca2949c46f91e37f28fa31ad6c1e8036f2d0"
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 0ca80b51563..5ecd511bdcf 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>, Matrix4<T>);
+known_heap_size!(0, Rect<T>, Point2D<T>, Size2D<T>, Matrix2D<T>, SideOffsets2D<T>);
-known_heap_size!(0, Au, Color, Cursor);
+known_heap_size!(0, Au, Color, Cursor, Matrix4);
known_heap_size!(0, Range<T>);
diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock
index e88d63376a6..cd24b4adfbd 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#270d0246b79fbf86fc2938c4952cae74e4025fcf"
+source = "git+https://github.com/servo/rust-geom#1b49f8ce1c4e8ade720dd940d1964c657a96817f"
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#36d02af1bf0d37894fdb77ab3c1860a6e7b554ae"
+source = "git+https://github.com/servo/rust-layers#ca37ca2949c46f91e37f28fa31ad6c1e8036f2d0"
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 0dae49287fa..4a98b5b6318 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#270d0246b79fbf86fc2938c4952cae74e4025fcf"
+source = "git+https://github.com/servo/rust-geom#1b49f8ce1c4e8ade720dd940d1964c657a96817f"
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#36d02af1bf0d37894fdb77ab3c1860a6e7b554ae"
+source = "git+https://github.com/servo/rust-layers#ca37ca2949c46f91e37f28fa31ad6c1e8036f2d0"
dependencies = [
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
"cgl 0.0.1 (git+https://github.com/servo/cgl-rs)",