mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
WR multi-document update
This commit is contained in:
parent
a15d13a6ec
commit
8c588e8c36
14 changed files with 111 additions and 86 deletions
|
@ -21,6 +21,9 @@ 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;
|
||||
|
@ -59,12 +62,6 @@ 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