mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-29 18:47:31 +09:00
Bug 1360157 - Assert that a display: contents child always has a parent
Tag #1375
This commit is contained in:
parent
d3ffda520f
commit
34d576d55d
1 changed files with 1 additions and 0 deletions
|
|
@ -8296,6 +8296,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer,
|
||||||
"display:contents nodes shouldn't have a frame");
|
"display:contents nodes shouldn't have a frame");
|
||||||
if (!childFrame && GetDisplayContentsStyleFor(aChild)) {
|
if (!childFrame && GetDisplayContentsStyleFor(aChild)) {
|
||||||
nsIContent* ancestor = aContainer;
|
nsIContent* ancestor = aContainer;
|
||||||
|
MOZ_ASSERT(ancestor, "display: contents on the root?");
|
||||||
while (!ancestor->GetPrimaryFrame()) {
|
while (!ancestor->GetPrimaryFrame()) {
|
||||||
// FIXME(emilio): Should this use the flattened tree parent instead?
|
// FIXME(emilio): Should this use the flattened tree parent instead?
|
||||||
ancestor = ancestor->GetParent();
|
ancestor = ancestor->GetParent();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue