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:
Martin Robinson 2025-04-10 20:53:08 +02:00 committed by GitHub
parent 820326873b
commit 3c5da6588d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
}