mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Add LayoutBoxBase
and use it for IndependentFormattingContext
(#34507)
Add a new struct `LayoutBoxBase`, that will be used throughout the box tree. The idea of this struct is that we have a place to consistently store common layout information (style and node information) and also to cache layout results such as content sizes (inline and maybe later box sizes) and eventually layout results. In addition to the addition of this struct, `IndependentFormattingContext` is flattened slightly so that it directly holds the contents of both replaced and non-replaced elements. This is only added to independent formatting contexts, but will later be added to all block containers as well. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
97e9841d47
commit
264c0f972f
16 changed files with 425 additions and 441 deletions
|
@ -14,6 +14,7 @@ pub mod flow;
|
|||
mod formatting_contexts;
|
||||
mod fragment_tree;
|
||||
pub mod geom;
|
||||
mod layout_box_base;
|
||||
mod taffy;
|
||||
#[macro_use]
|
||||
pub mod layout_debug;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue