diff options
author | Ms2ger <Ms2ger@gmail.com> | 2017-01-11 15:27:14 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2017-01-11 15:27:14 +0100 |
commit | 7879edb451049b6ddc173490c8878dcb0075389c (patch) | |
tree | 51970f232a98191a903706957c2c50c7cb907e7b /components/script_traits/lib.rs | |
parent | 04a3242dc54c670dcdafcf1f0ac5373f2ed612f3 (diff) | |
download | servo-7879edb451049b6ddc173490c8878dcb0075389c.tar.gz servo-7879edb451049b6ddc173490c8878dcb0075389c.zip |
Move DevicePixel to script_traits.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 1916d666a3e..c0131158326 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -48,7 +48,6 @@ use euclid::point::Point2D; use euclid::rect::Rect; use euclid::scale_factor::ScaleFactor; use euclid::size::TypedSize2D; -use gfx_traits::DevicePixel; use gfx_traits::Epoch; use gfx_traits::ScrollRootId; use heapsize::HeapSizeOf; @@ -642,6 +641,12 @@ pub struct StackingContextScrollState { pub scroll_offset: Point2D<f32>, } +/// One hardware pixel. +/// +/// This unit corresponds to the smallest addressable element of the display hardware. +#[derive(Copy, Clone, Debug)] +pub enum DevicePixel {} + /// Data about the window size. #[derive(Copy, Clone, Deserialize, Serialize, HeapSizeOf)] pub struct WindowSizeData { |