commit d49b89c743097fd0c2221ba277b63b95e867ba9a
parent 0ca8bfe9d98e18e3a4fdf38cb543cd9d5f4f3b4f
Author: Ting-Yu Lin <tlin@mozilla.com>
Date: Mon, 13 Oct 2025 21:36:12 +0000
Bug 1983345 Part 1 - Fix a typo in the documentation for ComputeContainingBlockRectangle(). r=layout-reviewers,emilio
Compute the content-box "size", not "rect". Also, change the comment style to
C++ style to match other methods.
Differential Revision: https://phabricator.services.mozilla.com/D268297
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/layout/generic/ReflowInput.h b/layout/generic/ReflowInput.h
@@ -852,12 +852,10 @@ struct ReflowInput : public SizeComputationInput {
const Maybe<LogicalMargin>& aPadding,
LayoutFrameType aFrameType);
- /**
- * Compute the content-box rect of the containing block frame in mFrame's
- * writing-mode (mWritingMode).
- *
- * Note: the block-size in the return value may be unconstrained.
- */
+ // Compute the content-box size of the containing block frame in mFrame's
+ // writing-mode (mWritingMode).
+ //
+ // Note: the block-size in the return value may be unconstrained.
LogicalSize ComputeContainingBlockRectangle(
nsPresContext* aPresContext, const ReflowInput* aContainingBlockRI) const;