summaryrefslogtreecommitdiffstats
path: root/layout/base/nsCSSFrameConstructor.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 05:25:20 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 05:25:20 -0400
commit34e2c4054fc597ab9ef3355470a7b1c2c20bbc84 (patch)
treebb265c128591f09af586ac0da1a3c170948d0230 /layout/base/nsCSSFrameConstructor.cpp
parent7614fdb51b177e6975fce5bf9a7facef170e61aa (diff)
downloadUXP-34e2c4054fc597ab9ef3355470a7b1c2c20bbc84.tar
UXP-34e2c4054fc597ab9ef3355470a7b1c2c20bbc84.tar.gz
UXP-34e2c4054fc597ab9ef3355470a7b1c2c20bbc84.tar.lz
UXP-34e2c4054fc597ab9ef3355470a7b1c2c20bbc84.tar.xz
UXP-34e2c4054fc597ab9ef3355470a7b1c2c20bbc84.zip
Bug 1360157 - Assert that a display: contents child always has a parent
Tag #1375
Diffstat (limited to 'layout/base/nsCSSFrameConstructor.cpp')
-rw-r--r--layout/base/nsCSSFrameConstructor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp
index 866fa148b..bee9ed629 100644
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -8296,6 +8296,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer,
"display:contents nodes shouldn't have a frame");
if (!childFrame && GetDisplayContentsStyleFor(aChild)) {
nsIContent* ancestor = aContainer;
+ MOZ_ASSERT(ancestor, "display: contents on the root?");
while (!ancestor->GetPrimaryFrame()) {
// FIXME(emilio): Should this use the flattened tree parent instead?
ancestor = ancestor->GetParent();