mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
Move DevicePixel to script_traits.
This commit is contained in:
parent
04a3242dc5
commit
7879edb451
13 changed files with 13 additions and 27 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue