mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-30 02:57:29 +09:00
import from mozilla: Bug 1350925 part 2 - Assert that we're given clean ReflowOutput overflow areas in ReflowChild. rs=dholbert a=gchang (5763b4d39e4)
This commit is contained in:
parent
7f4a92ec55
commit
d7396f6886
1 changed files with 5 additions and 2 deletions
|
|
@ -1030,8 +1030,8 @@ nsContainerFrame::ComputeAutoSize(nsRenderingContext* aRenderingContext,
|
||||||
void
|
void
|
||||||
nsContainerFrame::ReflowChild(nsIFrame* aKidFrame,
|
nsContainerFrame::ReflowChild(nsIFrame* aKidFrame,
|
||||||
nsPresContext* aPresContext,
|
nsPresContext* aPresContext,
|
||||||
ReflowOutput& aDesiredSize,
|
ReflowOutput& aDesiredSize,
|
||||||
const ReflowInput& aReflowInput,
|
const ReflowInput& aReflowInput,
|
||||||
const WritingMode& aWM,
|
const WritingMode& aWM,
|
||||||
const LogicalPoint& aPos,
|
const LogicalPoint& aPos,
|
||||||
const nsSize& aContainerSize,
|
const nsSize& aContainerSize,
|
||||||
|
|
@ -1044,6 +1044,9 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame,
|
||||||
NS_ASSERTION(aContainerSize.width != NS_UNCONSTRAINEDSIZE,
|
NS_ASSERTION(aContainerSize.width != NS_UNCONSTRAINEDSIZE,
|
||||||
"ReflowChild with unconstrained container width!");
|
"ReflowChild with unconstrained container width!");
|
||||||
}
|
}
|
||||||
|
MOZ_ASSERT(aDesiredSize.VisualOverflow() == nsRect(0,0,0,0) &&
|
||||||
|
aDesiredSize.ScrollableOverflow() == nsRect(0,0,0,0),
|
||||||
|
"please reset the overflow areas before calling ReflowChild");
|
||||||
|
|
||||||
// Position the child frame and its view if requested.
|
// Position the child frame and its view if requested.
|
||||||
if (ReflowChildFlags::NoMoveFrame !=
|
if (ReflowChildFlags::NoMoveFrame !=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue