mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-29 18:58:40 +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");
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue