diff options
Diffstat (limited to 'components/geometry/lib.rs')
-rw-r--r-- | components/geometry/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/geometry/lib.rs b/components/geometry/lib.rs index c71b687e814..61ded7c67d3 100644 --- a/components/geometry/lib.rs +++ b/components/geometry/lib.rs @@ -4,7 +4,8 @@ extern crate app_units; extern crate euclid; -#[macro_use] extern crate heapsize; +extern crate malloc_size_of; +#[macro_use] extern crate malloc_size_of_derive; use app_units::{Au, MAX_AU, MIN_AU}; use euclid::{Point2D, Rect, Size2D}; @@ -24,11 +25,9 @@ use euclid::{Point2D, Rect, Size2D}; /// /// The ratio between DeviceIndependentPixel and DevicePixel for a given display be found by calling /// `servo::windowing::WindowMethods::hidpi_factor`. -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, MallocSizeOf)] pub enum DeviceIndependentPixel {} -known_heap_size!(0, DeviceIndependentPixel); - // An Au is an "App Unit" and represents 1/60th of a CSS pixel. It was // originally proposed in 2002 as a standard unit of measure in Gecko. // See https://bugzilla.mozilla.org/show_bug.cgi?id=177805 for more info. |