aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx_traits
diff options
context:
space:
mode:
authorPeter <peter.hall@algomi.com>2016-04-17 18:10:26 +0100
committerPeter <peter.hall@algomi.com>2016-04-17 18:39:49 +0100
commitb0ad3ddf5b6bfea86cd1b21794ffcb72aefb0576 (patch)
treeee4ecf5a60f15af1117a18337e2095c4264f131e /components/gfx_traits
parentb00c2740e300fd7b8c18276d8d416a9f78c42674 (diff)
downloadservo-b0ad3ddf5b6bfea86cd1b21794ffcb72aefb0576.tar.gz
servo-b0ad3ddf5b6bfea86cd1b21794ffcb72aefb0576.zip
Updated euclid to version 0.6.5
And updated existing usages of Matrix4 to use Matrix4D<T>
Diffstat (limited to 'components/gfx_traits')
-rw-r--r--components/gfx_traits/Cargo.toml2
-rw-r--r--components/gfx_traits/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/components/gfx_traits/Cargo.toml b/components/gfx_traits/Cargo.toml
index 11e81428cb5..d341ac03823 100644
--- a/components/gfx_traits/Cargo.toml
+++ b/components/gfx_traits/Cargo.toml
@@ -26,7 +26,7 @@ path = "../plugins"
path = "../util"
[dependencies]
-euclid = {version = "0.6.4", features = ["plugins"]}
+euclid = {version = "0.6.5", features = ["plugins"]}
heapsize = "0.3.0"
heapsize_plugin = "0.1.2"
serde = "0.7"
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs
index ed78a9c74b0..e75700c379c 100644
--- a/components/gfx_traits/lib.rs
+++ b/components/gfx_traits/lib.rs
@@ -23,7 +23,7 @@ mod paint_listener;
pub use paint_listener::PaintListener;
use azure::azure_hl::Color;
-use euclid::matrix::Matrix4;
+use euclid::Matrix4D;
use euclid::rect::Rect;
use msg::constellation_msg::{Failure, PipelineId};
use std::fmt::{self, Debug, Formatter};
@@ -132,9 +132,9 @@ pub struct LayerProperties {
/// The scrolling policy of this layer.
pub scroll_policy: ScrollPolicy,
/// The transform for this layer
- pub transform: Matrix4,
+ pub transform: Matrix4D<f32>,
/// The perspective transform for this layer
- pub perspective: Matrix4,
+ pub perspective: Matrix4D<f32>,
/// The subpage that this layer represents. If this is `Some`, this layer represents an
/// iframe.
pub subpage_pipeline_id: Option<PipelineId>,