Leave the placeholder's pointer to the out-of-flow intact because the float cache depends on it later on. b=348688 r=bzbarsky sr=roc

This commit is contained in:
mats.palmgren@bredband.net
2006-08-17 13:15:26 +00:00
parent 7e79034167
commit 115fd200a3
4 changed files with 2 additions and 36 deletions

View File

@@ -9772,7 +9772,8 @@ DoDeletingFrameSubtree(nsFrameManager* aFrameManager,
// Remove the mapping from the out-of-flow frame to its placeholder.
aFrameManager->UnregisterPlaceholderFrame((nsPlaceholderFrame*)childFrame);
((nsPlaceholderFrame*)childFrame)->SetOutOfFlowFrame(nsnull);
// Don't SetOutOfFlowFrame(nsnull) here because the float cache depends
// on it when the float is removed later on, see bug 348688 comment 6.
// Queue the out-of-flow frame to be destroyed only if aRemovedFrame is _not_
// one of its ancestor frames or if it is a popup frame.