mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 23:57:31 +09:00
Issue #2693 - Don't reflow children if they have 0 width.
This seems to be the main reason for the reflow storm.
This commit is contained in:
parent
8b41e53028
commit
cb233feea0
1 changed files with 19 additions and 4 deletions
|
|
@ -3793,10 +3793,25 @@ MeasuringReflow(nsIFrame* aChild,
|
||||||
nsIFrame::ReflowChildFlags::NoMoveFrame |
|
nsIFrame::ReflowChildFlags::NoMoveFrame |
|
||||||
nsIFrame::ReflowChildFlags::NoSizeView |
|
nsIFrame::ReflowChildFlags::NoSizeView |
|
||||||
nsIFrame::ReflowChildFlags::NoDeleteNextInFlowChild;
|
nsIFrame::ReflowChildFlags::NoDeleteNextInFlowChild;
|
||||||
parent->ReflowChild(aChild, pc, childSize, childRI, wm,
|
if (childSize.mBoundingMetrics.width != 0) {
|
||||||
LogicalPoint(wm), nsSize(), flags, childStatus);
|
parent->ReflowChild(aChild,
|
||||||
parent->FinishReflowChild(aChild, pc, childSize, &childRI, wm,
|
pc,
|
||||||
LogicalPoint(wm), nsSize(), flags);
|
childSize,
|
||||||
|
childRI,
|
||||||
|
wm,
|
||||||
|
LogicalPoint(wm),
|
||||||
|
nsSize(),
|
||||||
|
flags,
|
||||||
|
childStatus);
|
||||||
|
parent->FinishReflowChild(aChild,
|
||||||
|
pc,
|
||||||
|
childSize,
|
||||||
|
&childRI,
|
||||||
|
wm,
|
||||||
|
LogicalPoint(wm),
|
||||||
|
nsSize(),
|
||||||
|
flags);
|
||||||
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
parent->DeleteProperty(nsContainerFrame::DebugReflowingWithInfiniteISize());
|
parent->DeleteProperty(nsContainerFrame::DebugReflowingWithInfiniteISize());
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue