aboutsummaryrefslogtreecommitdiffstats
path: root/components/geometry/lib.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2019-03-07 15:15:07 +0100
committerPaul Rouget <me@paulrouget.com>2019-03-22 15:41:48 +0800
commit4dcee2f36cae5edc3fd9aa013a4f5abf5a44699a (patch)
tree4bb99869aa20eae871819d506f355b4d56c8abbf /components/geometry/lib.rs
parent92a1336264a9c5521926c45874a17341a565614c (diff)
downloadservo-4dcee2f36cae5edc3fd9aa013a4f5abf5a44699a.tar.gz
servo-4dcee2f36cae5edc3fd9aa013a4f5abf5a44699a.zip
WR update: new viewport semantic
Diffstat (limited to 'components/geometry/lib.rs')
-rw-r--r--components/geometry/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/geometry/lib.rs b/components/geometry/lib.rs
index fdf7f728b8c..45d423f0ab5 100644
--- a/components/geometry/lib.rs
+++ b/components/geometry/lib.rs
@@ -8,12 +8,11 @@ extern crate malloc_size_of_derive;
use app_units::{Au, MAX_AU, MIN_AU};
use euclid::{Length, Point2D, Rect, Size2D};
use std::f32;
-use style_traits::DevicePixel;
-use webrender_api::{LayoutPoint, LayoutRect, LayoutSize};
+use webrender_api::{FramebufferPixel, LayoutPoint, LayoutRect, LayoutSize};
// Units for use with euclid::length and euclid::scale_factor.
-pub type DeviceUintLength = Length<u32, DevicePixel>;
+pub type FramebufferUintLength = Length<u32, FramebufferPixel>;
/// A normalized "pixel" at the default resolution for the display.
///