mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Simplify the overflow child frame reparenting in
nsInlineFrame::DestroyFrom.
This commit is contained in:
parent
37c5f72be6
commit
a67d5f872c
2 changed files with 2 additions and 7 deletions
|
|
@ -199,8 +199,7 @@ nsInlineFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
|||
// Fixup the parent pointers for any child frames on the OverflowList.
|
||||
// nsIFrame::DestroyFrom depends on that to find the sticky scroll
|
||||
// container (an ancestor).
|
||||
nsIFrame* lineContainer = nsLayoutUtils::FindNearestBlockAncestor(this);
|
||||
DrainSelfOverflowListInternal(eForDestroy, lineContainer);
|
||||
overflowFrames->ApplySetParent(this);
|
||||
}
|
||||
nsContainerFrame::DestroyFrom(aDestructRoot);
|
||||
}
|
||||
|
|
@ -508,8 +507,7 @@ nsInlineFrame::DrainSelfOverflowListInternal(DrainFlags aFlags,
|
|||
if (aLineContainer && aLineContainer->GetPrevContinuation()) {
|
||||
ReparentFloatsForInlineChild(aLineContainer, firstChild, true);
|
||||
}
|
||||
const bool doReparentSC =
|
||||
(aFlags & eInFirstLine) && !(aFlags & eForDestroy);
|
||||
const bool doReparentSC = (aFlags & eInFirstLine);
|
||||
RestyleManagerHandle restyleManager = PresContext()->RestyleManager();
|
||||
for (nsIFrame* f = firstChild; f; f = f->GetNextSibling()) {
|
||||
f->SetParent(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue