mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Backed out changeset c424ad1c5f94 for build failures a=backout CLOSED TREE
Backs out https://github.com/servo/servo/pull/17892
This commit is contained in:
parent
f022936ebb
commit
3f1af3e62f
14 changed files with 85 additions and 111 deletions
|
@ -21,9 +21,6 @@ extern crate euclid;
|
|||
#[cfg(feature = "servo")] #[macro_use] extern crate heapsize_derive;
|
||||
extern crate selectors;
|
||||
#[cfg(feature = "servo")] #[macro_use] extern crate serde;
|
||||
extern crate webrender_api;
|
||||
|
||||
pub use webrender_api::DevicePixel;
|
||||
|
||||
use cssparser::{CowRcStr, Token};
|
||||
use selectors::parser::SelectorParseError;
|
||||
|
@ -62,6 +59,12 @@ impl PinchZoomFactor {
|
|||
#[derive(Clone, Copy, Debug)]
|
||||
pub enum CSSPixel {}
|
||||
|
||||
/// One hardware pixel.
|
||||
///
|
||||
/// This unit corresponds to the smallest addressable element of the display hardware.
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub enum DevicePixel {}
|
||||
|
||||
// In summary, the hierarchy of pixel units and the factors to convert from one to the next:
|
||||
//
|
||||
// DevicePixel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue