Bail on orphan situation.

This commit is contained in:
Fedor 2020-05-07 14:45:24 +03:00
parent b939571205
commit 23f714417f
1 changed files with 4 additions and 0 deletions

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);