mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Don't clobber the parentFrame we need to recover letter frames on. Bug 348729, r+sr=roc
This commit is contained in:
parent
a0f5d4a00d
commit
6298f2930d
@ -10068,9 +10068,9 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer,
|
||||
|
||||
// Remove the placeholder frame first (XXX second for now) (so
|
||||
// that it doesn't retain a dangling pointer to memory)
|
||||
parentFrame = placeholderFrame->GetParent();
|
||||
nsIFrame* placeholderParent = placeholderFrame->GetParent();
|
||||
::DeletingFrameSubtree(frameManager, placeholderFrame);
|
||||
rv |= frameManager->RemoveFrame(parentFrame,
|
||||
rv |= frameManager->RemoveFrame(placeholderParent,
|
||||
nsnull, placeholderFrame);
|
||||
} else {
|
||||
// Notify the parent frame that it should delete the frame
|
||||
@ -10091,9 +10091,11 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer,
|
||||
}
|
||||
|
||||
if (haveFLS && mInitialContainingBlock) {
|
||||
NS_ASSERTION(containingBlock == GetFloatContainingBlock(parentFrame),
|
||||
"What happened here?");
|
||||
nsFrameConstructorState state(mPresShell, mFixedContainingBlock,
|
||||
GetAbsoluteContainingBlock(parentFrame),
|
||||
GetFloatContainingBlock(parentFrame));
|
||||
containingBlock);
|
||||
RecoverLetterFrames(state, containingBlock);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user