Issue #1511 - Bail on orphan situation.

This resolves #1511
This commit is contained in:
wolfbeast 2020-04-10 21:48:39 +02:00 committed by Roy Tam
commit ce621f34df

View file

@ -1923,6 +1923,10 @@ nsContainerFrame::RenumberFrameAndDescendants(int32_t* aOrdinal,
nsIFrame *f = bullet;
do {
nsIFrame *parent = f->GetParent();
if (!parent) {
// We may have an orphan situation in some corner cases.
break;
}
parent->ChildIsDirty(f);
f = parent;
} while (f != listItem);