diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-10 21:48:39 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 13:27:12 +0200 |
commit | 96afb5250d1d89dbd445c91e45b650dca0c5cb64 (patch) | |
tree | 80fe55970df8cc3ab13084491ac85f648e746ba4 /layout/generic/nsContainerFrame.cpp | |
parent | b93afb1ba7f3b4182d5dcf0a940fd99d5e808ecd (diff) | |
download | UXP-96afb5250d1d89dbd445c91e45b650dca0c5cb64.tar UXP-96afb5250d1d89dbd445c91e45b650dca0c5cb64.tar.gz UXP-96afb5250d1d89dbd445c91e45b650dca0c5cb64.tar.lz UXP-96afb5250d1d89dbd445c91e45b650dca0c5cb64.tar.xz UXP-96afb5250d1d89dbd445c91e45b650dca0c5cb64.zip |
Issue #1511 - Bail on orphan situation.
This resolves #1511
Diffstat (limited to 'layout/generic/nsContainerFrame.cpp')
-rw-r--r-- | layout/generic/nsContainerFrame.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index abf687c9b..da6e6cf79 100644 --- a/layout/generic/nsContainerFrame.cpp +++ b/layout/generic/nsContainerFrame.cpp @@ -1925,6 +1925,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); |