mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Add documentation for CacheableLayoutResultAndInputs
(#36448)
Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
820326873b
commit
3c5da6588d
1 changed files with 6 additions and 0 deletions
|
@ -103,10 +103,16 @@ pub(crate) struct CacheableLayoutResult {
|
|||
pub specific_layout_info: Option<SpecificLayoutInfo>,
|
||||
}
|
||||
|
||||
/// A collection of layout inputs and a cached layout result for a [`LayoutBoxBase`].
|
||||
pub(crate) struct CacheableLayoutResultAndInputs {
|
||||
/// The [`CacheableLayoutResult`] for this layout.
|
||||
pub result: CacheableLayoutResult,
|
||||
|
||||
/// The [`ContainingBlockSize`] to use for this box's contents, but not
|
||||
/// for the box itself.
|
||||
pub containing_block_for_children_size: ContainingBlockSize,
|
||||
|
||||
/// A [`PositioningContext`] holding absolutely-positioned descendants
|
||||
/// collected during the layout of this box.
|
||||
pub positioning_context: PositioningContext,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue