aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/layout_box_base.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-04-10 20:53:08 +0200
committerGitHub <noreply@github.com>2025-04-10 18:53:08 +0000
commit3c5da6588d412400e17a3c46afc122b46102c7f3 (patch)
treed5167e132e764090be2e5dec49f83e4c2780040c /components/layout_2020/layout_box_base.rs
parent820326873bbf3194c51aebe597d4223bfe6bd318 (diff)
downloadservo-3c5da6588d412400e17a3c46afc122b46102c7f3.tar.gz
servo-3c5da6588d412400e17a3c46afc122b46102c7f3.zip
layout: Add documentation for `CacheableLayoutResultAndInputs` (#36448)
Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/layout_box_base.rs')
-rw-r--r--components/layout_2020/layout_box_base.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/layout_2020/layout_box_base.rs b/components/layout_2020/layout_box_base.rs
index 885ff0d26d3..b52c9a6bce5 100644
--- a/components/layout_2020/layout_box_base.rs
+++ b/components/layout_2020/layout_box_base.rs
@@ -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,
}