mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce CSSPixel as a replacement for ViewportPx and PagePx.
This commit is contained in:
parent
56a99577b3
commit
30ff2f8f0d
16 changed files with 81 additions and 92 deletions
|
@ -30,7 +30,7 @@ use euclid::size::TypedSize2D;
|
|||
use ipc_channel::ipc::IpcSender;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use script_traits::{ConstellationControlMsg, LayoutControlMsg};
|
||||
use style_traits::PagePx;
|
||||
use style_traits::CSSPixel;
|
||||
|
||||
mod compositor;
|
||||
pub mod compositor_thread;
|
||||
|
@ -40,7 +40,7 @@ pub mod windowing;
|
|||
|
||||
pub struct SendableFrameTree {
|
||||
pub pipeline: CompositionPipeline,
|
||||
pub size: Option<TypedSize2D<f32, PagePx>>,
|
||||
pub size: Option<TypedSize2D<f32, CSSPixel>>,
|
||||
pub children: Vec<SendableFrameTree>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue