mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add layout debugger support to layout_2020
This commit is contained in:
parent
9c3feb746b
commit
5cbe05366b
8 changed files with 186 additions and 13 deletions
|
@ -18,19 +18,19 @@ pub type PhysicalRect<U> = euclid::Rect<U, CSSPixel>;
|
|||
pub type PhysicalSides<U> = euclid::SideOffsets2D<U, CSSPixel>;
|
||||
|
||||
pub(crate) mod flow_relative {
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Serialize)]
|
||||
pub(crate) struct Vec2<T> {
|
||||
pub inline: T,
|
||||
pub block: T,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Serialize)]
|
||||
pub(crate) struct Rect<T> {
|
||||
pub start_corner: Vec2<T>,
|
||||
pub size: Vec2<T>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Serialize)]
|
||||
pub(crate) struct Sides<T> {
|
||||
pub inline_start: T,
|
||||
pub inline_end: T,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue