Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj

This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr
This commit is contained in:
Chris Peterson
2018-06-17 22:43:11 -07:00
parent b48da198b0
commit f7ceeaf5cf
281 changed files with 653 additions and 587 deletions

View File

@@ -2558,7 +2558,7 @@ nsTableFrame::AppendFrames(ChildListID aListID,
InsertRowGroups(nsFrameList::Slice(mFrames, f, nullptr));
} else {
// Nothing special to do, just add the frame to our child list
NS_NOTREACHED("How did we get here? Frame construction screwed up");
MOZ_ASSERT_UNREACHABLE("How did we get here? Frame construction screwed up");
mFrames.AppendFrame(nullptr, f);
}
}
@@ -2733,7 +2733,7 @@ nsTableFrame::HomogenousInsertFrames(ChildListID aListID,
InsertRowGroups(newRowGroups);
} else {
NS_ASSERTION(aListID == kPrincipalList, "unexpected child list");
NS_NOTREACHED("How did we even get here?");
MOZ_ASSERT_UNREACHABLE("How did we even get here?");
// Just insert the frame and don't worry about reflowing it
mFrames.InsertFrames(nullptr, aPrevFrame, aFrameList);
return;
@@ -3070,7 +3070,7 @@ nsTableFrame::OrderRowGroups(RowGroupArray& aChildren,
aChildren.AppendElement(rowGroup);
break;
default:
NS_NOTREACHED("How did this produce an nsTableRowGroupFrame?");
MOZ_ASSERT_UNREACHABLE("How did this produce an nsTableRowGroupFrame?");
// Just ignore it
break;
}