aboutsummaryrefslogtreecommitdiffstats
path: root/components/geometry/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/geometry/lib.rs')
-rw-r--r--components/geometry/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/geometry/lib.rs b/components/geometry/lib.rs
index c22c9d16055..c4bb9721bf6 100644
--- a/components/geometry/lib.rs
+++ b/components/geometry/lib.rs
@@ -5,16 +5,20 @@
extern crate app_units;
extern crate euclid;
extern crate malloc_size_of;
+extern crate style_traits;
#[macro_use] extern crate malloc_size_of_derive;
extern crate webrender_api;
use app_units::{Au, MAX_AU, MIN_AU};
-use euclid::{Point2D, Rect, Size2D};
+use euclid::{Length, Point2D, Rect, Size2D};
use std::f32;
+use style_traits::DevicePixel;
use webrender_api::{LayoutPoint, LayoutRect, LayoutSize};
// Units for use with euclid::length and euclid::scale_factor.
+pub type DeviceUintLength = Length<u32, DevicePixel>;
+
/// A normalized "pixel" at the default resolution for the display.
///
/// Like the CSS "px" unit, the exact physical size of this unit may vary between devices, but it