summaryrefslogtreecommitdiffstats
path: root/layout
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-04-10 21:48:39 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-10 21:48:39 +0200
commit56103d6756f27bebdbb5d3ef9afe4ab29ac09c11 (patch)
treeccae544d87f481dbec8bb9e3def8853b9dd0c392 /layout
parent85a97e9a35a75e58d35f741a62a7f9ff4c1d85e3 (diff)
downloadUXP-56103d6756f27bebdbb5d3ef9afe4ab29ac09c11.tar
UXP-56103d6756f27bebdbb5d3ef9afe4ab29ac09c11.tar.gz
UXP-56103d6756f27bebdbb5d3ef9afe4ab29ac09c11.tar.lz
UXP-56103d6756f27bebdbb5d3ef9afe4ab29ac09c11.tar.xz
UXP-56103d6756f27bebdbb5d3ef9afe4ab29ac09c11.zip
Issue #1511 - Bail on orphan situation.
This resolves #1511
Diffstat (limited to 'layout')
-rw-r--r--layout/generic/nsContainerFrame.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp
index afc4ed96f..ecd704251 100644
--- a/layout/generic/nsContainerFrame.cpp
+++ b/layout/generic/nsContainerFrame.cpp
@@ -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);