From 594a360cbfd4db9270044642dc9210ef603744e7 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Tue, 18 Feb 2025 20:18:13 +0800 Subject: [PATCH] Revert "Issue #2693 - Don't reflow children if they have 0 width." This reverts commit cb233feea0a6eb0b6f768406e17f85bd270925c4. --- layout/generic/nsGridContainerFrame.cpp | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/layout/generic/nsGridContainerFrame.cpp b/layout/generic/nsGridContainerFrame.cpp index f2f5ee0f65..e58c76dcfe 100644 --- a/layout/generic/nsGridContainerFrame.cpp +++ b/layout/generic/nsGridContainerFrame.cpp @@ -3793,25 +3793,10 @@ MeasuringReflow(nsIFrame* aChild, nsIFrame::ReflowChildFlags::NoMoveFrame | nsIFrame::ReflowChildFlags::NoSizeView | nsIFrame::ReflowChildFlags::NoDeleteNextInFlowChild; - if (childSize.mBoundingMetrics.width != 0) { - parent->ReflowChild(aChild, - pc, - childSize, - childRI, - wm, - LogicalPoint(wm), - nsSize(), - flags, - childStatus); - parent->FinishReflowChild(aChild, - pc, - childSize, - &childRI, - wm, - LogicalPoint(wm), - nsSize(), - flags); - } + parent->ReflowChild(aChild, pc, childSize, childRI, wm, + LogicalPoint(wm), nsSize(), flags, childStatus); + parent->FinishReflowChild(aChild, pc, childSize, &childRI, wm, + LogicalPoint(wm), nsSize(), flags); #ifdef DEBUG parent->DeleteProperty(nsContainerFrame::DebugReflowingWithInfiniteISize()); #endif