Bug 1427677: Remove useless frame construction condition. r?bz
We remove async all the time now since
bug 1389743, so this condition just can't
happen anymore.
MozReview-Commit-ID: LujPaYPwA4G
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -7374,29 +7374,18 @@ void
nsCSSFrameConstructor::IssueSingleInsertNofications(nsIContent* aContainer,
nsIContent* aStartChild,
nsIContent* aEndChild,
InsertionKind aInsertionKind)
{
for (nsIContent* child = aStartChild;
child != aEndChild;
child = child->GetNextSibling()) {
- if ((child->GetPrimaryFrame() || GetDisplayNoneStyleFor(child) ||
- GetDisplayContentsStyleFor(child))
-#ifdef MOZ_XUL
- // Except listboxes suck, so do NOT skip anything here if
- // we plan to notify a listbox.
- && !MaybeGetListBoxBodyFrame(aContainer, child)
-#endif
- ) {
- // Already have a frame or undisplayed entry for this content; a
- // previous ContentRangeInserted in this loop must have reconstructed
- // its insertion parent. Skip it.
- continue;
- }
+ MOZ_ASSERT(!child->GetPrimaryFrame() && !GetDisplayNoneStyleFor(child) &&
+ !GetDisplayContentsStyleFor(child));
// Call ContentRangeInserted with this node.
ContentRangeInserted(aContainer, child, child->GetNextSibling(),
mTempFrameTreeState, aInsertionKind, nullptr);
}
}
bool
nsCSSFrameConstructor::InsertionPoint::IsMultiple() const