mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
WR update: new viewport semantic
This commit is contained in:
parent
92a1336264
commit
4dcee2f36c
7 changed files with 48 additions and 34 deletions
|
@ -8,12 +8,11 @@ extern crate malloc_size_of_derive;
|
|||
use app_units::{Au, MAX_AU, MIN_AU};
|
||||
use euclid::{Length, Point2D, Rect, Size2D};
|
||||
use std::f32;
|
||||
use style_traits::DevicePixel;
|
||||
use webrender_api::{LayoutPoint, LayoutRect, LayoutSize};
|
||||
use webrender_api::{FramebufferPixel, LayoutPoint, LayoutRect, LayoutSize};
|
||||
|
||||
// Units for use with euclid::length and euclid::scale_factor.
|
||||
|
||||
pub type DeviceUintLength = Length<u32, DevicePixel>;
|
||||
pub type FramebufferUintLength = Length<u32, FramebufferPixel>;
|
||||
|
||||
/// A normalized "pixel" at the default resolution for the display.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue