mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1144096 part 22 - [css-grid] Check NS_INLINE_IS_BREAK_BEFORE before checking other completion status. r=dholbert
This commit is contained in:
parent
49b7f696e3
commit
c46f94cf01
@ -1030,7 +1030,8 @@ nsContainerFrame::ReflowChild(nsIFrame* aKidFrame,
|
||||
|
||||
// If the child frame is complete, delete any next-in-flows,
|
||||
// but only if the NO_DELETE_NEXT_IN_FLOW flag isn't set.
|
||||
if (NS_FRAME_IS_FULLY_COMPLETE(aStatus) &&
|
||||
if (!NS_INLINE_IS_BREAK_BEFORE(aStatus) &&
|
||||
NS_FRAME_IS_FULLY_COMPLETE(aStatus) &&
|
||||
!(aFlags & NS_FRAME_NO_DELETE_NEXT_IN_FLOW_CHILD)) {
|
||||
nsIFrame* kidNextInFlow = aKidFrame->GetNextInFlow();
|
||||
if (kidNextInFlow) {
|
||||
|
@ -4528,7 +4528,8 @@ nsGridContainerFrame::ReflowRowsInFragmentainer(
|
||||
nsReflowStatus childStatus;
|
||||
ReflowInFlowChild(child, info, aContainerSize, &aFragmentainer,
|
||||
aState, aContentArea, aDesiredSize, childStatus);
|
||||
MOZ_ASSERT(!NS_FRAME_IS_FULLY_COMPLETE(childStatus) ||
|
||||
MOZ_ASSERT(NS_INLINE_IS_BREAK_BEFORE(childStatus) ||
|
||||
!NS_FRAME_IS_FULLY_COMPLETE(childStatus) ||
|
||||
!child->GetNextInFlow(),
|
||||
"fully-complete reflow should destroy any NIFs");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user