tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 543139346be95c9f65eb01926259eef420036754
parent d8930777738b3364429c15d6c289cda9463e4d76
Author: Ting-Yu Lin <tlin@mozilla.com>
Date:   Mon, 13 Oct 2025 21:36:13 +0000

Bug 1983345 Part 4 - Move a comment next to the check for a replaced element with auto inline-size. r=layout-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D268300

Diffstat:
Mlayout/generic/ReflowInput.cpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/layout/generic/ReflowInput.cpp b/layout/generic/ReflowInput.cpp @@ -1354,15 +1354,15 @@ void ReflowInput::CalculateHypotheticalPosition( WritingMode wm = containingBlock->GetWritingMode(); const nscoord blockIStartContentEdge = blockContainerBP.IStart(wm); - // If it's a replaced element and it has a 'auto' value for - //'inline size', see if we can get the intrinsic size. This will allow - // us to exactly determine both the inline edges const auto anchorResolutionParams = AnchorPosResolutionParams::From(this); const auto styleISize = mStylePosition->ISize(wm, anchorResolutionParams); bool isAutoISize = styleISize->IsAuto(); + + // If it's a replaced element and it has a 'auto' value for 'inline size', see + // if we can get the intrinsic size. This will allow us to exactly determine + // both the inline edges. Maybe<nsSize> intrinsicSize; if (mFlags.mIsReplaced && isAutoISize) { - // See if we can get the intrinsic size of the element intrinsicSize = mFrame->GetIntrinsicSize().ToSize(); }