diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-01-11 11:31:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-11 11:31:15 -0800 |
commit | 5d3847dddc9bb7907abfa5d38a7927d6c656fbc1 (patch) | |
tree | ed573ad2693b85cee07973c909d0e37c3839aca7 /components/script_traits/lib.rs | |
parent | cfc74e20603e7395a743b3b3c202db6db840da4d (diff) | |
parent | 7879edb451049b6ddc173490c8878dcb0075389c (diff) | |
download | servo-5d3847dddc9bb7907abfa5d38a7927d6c656fbc1.tar.gz servo-5d3847dddc9bb7907abfa5d38a7927d6c656fbc1.zip |
Auto merge of #14961 - Ms2ger:DevicePixel, r=nox
Move DevicePixel to script_traits.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14961)
<!-- Reviewable:end -->
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 { |