Bug 826149 - Add IsFrameTreeTooDeep() early-return in flex container reflow. r=dbaron

This commit is contained in:
Daniel Holbert 2013-01-07 21:29:22 -05:00
parent c7b1f55e57
commit fd297c7cef

View File

@ -2019,6 +2019,10 @@ nsFlexContainerFrame::Reflow(nsPresContext* aPresContext,
PR_LOG(GetFlexContainerLog(), PR_LOG_DEBUG,
("Reflow() for nsFlexContainerFrame %p\n", this));
if (IsFrameTreeTooDeep(aReflowState, aDesiredSize, aStatus)) {
return NS_OK;
}
// We (and our children) can only depend on our ancestor's height if we have
// a percent-height. (There are actually other cases, too -- e.g. if our
// parent is itself a vertical flex container and we're flexible -- but we'll