aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-06-10 14:15:01 -0700
committerPatrick Walton <pcwalton@mimiga.net>2015-06-10 14:15:01 -0700
commit93a45c91d16c0ae2c6b7e507f66a7267206772ac (patch)
treefa6e2735427b638b1fc9296fea9a3954074d9620
parent053296e1319239fbfe2842edb31bbf46eb8f28d7 (diff)
parente42011cd53cc6f43610633cc0adb6f6b1ad24edb (diff)
downloadservo-93a45c91d16c0ae2c6b7e507f66a7267206772ac.tar.gz
servo-93a45c91d16c0ae2c6b7e507f66a7267206772ac.zip
Merge pull request #6330 from servo/revert-6329-remove-generic
Revert "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 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)",