Revert "Issue #2693 - Don't reflow children if they have 0 width."

This reverts commit cb233feea0.
This commit is contained in:
roytam1 2025-02-18 20:18:13 +08:00
commit 594a360cbf

View file

@ -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