Bug 1917144 Part 2 - Add IntrinsicSizeInput::mContainingBlockSize. r=dholbert
Currently, only the grid container needs the containing block size to resolve the transferred min and max sizes for `repeat()` function in `nsGridContainerFrame::ComputeIntrinsicISize()`. This patch is a preparation for Bug 1865438. `mContainingBlockSize` will be used there, so it does not change any behavior yet. Differential Revision: https://phabricator.services.mozilla.com/D221333
This commit is contained in:
@@ -249,7 +249,7 @@ LogicalSize nsTextControlFrame::CalcIntrinsicSize(gfxContext* aRenderingContext,
|
||||
// Add the inline size of the button if our char size is explicit, so as to
|
||||
// make sure to make enough space for it.
|
||||
if (maybeCols.isSome() && mButton && mButton->GetPrimaryFrame()) {
|
||||
const IntrinsicSizeInput input(aRenderingContext, Nothing());
|
||||
const IntrinsicSizeInput input(aRenderingContext, Nothing(), Nothing());
|
||||
intrinsicSize.ISize(aWM) += mButton->GetPrimaryFrame()->GetMinISize(input);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user