mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Dump box tree state into json files and display it on layout 2020 viewer
This commit is contained in:
parent
aaa3cd9a59
commit
a042f85083
11 changed files with 161 additions and 56 deletions
|
@ -48,7 +48,7 @@ impl ContentSizesRequest {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Serialize)]
|
||||
pub(crate) struct ContentSizes {
|
||||
pub min_content: Length,
|
||||
pub max_content: Length,
|
||||
|
@ -83,7 +83,7 @@ impl ContentSizes {
|
|||
}
|
||||
|
||||
/// Optional min/max-content for storage in the box tree
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Serialize)]
|
||||
pub(crate) enum BoxContentSizes {
|
||||
NoneWereRequested, // … during box construction
|
||||
Inline(ContentSizes),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue