Don't walk through placeholders to out-of-flows that are our descendants when

we destroy a frame subtree.  Bug 271151, r=rbs, sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2005-03-29 22:36:06 +00:00
Родитель e93227eb79
Коммит c08736436c
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -9498,11 +9498,16 @@ DoDeletingFrameSubtree(nsPresContext* aPresContext,
!nsLayoutUtils::IsProperAncestorFrame(aRemovedFrame, outOfFlowFrame)) {
if (aDestroyQueue.IndexOf(outOfFlowFrame) < 0)
aDestroyQueue.AppendElement(outOfFlowFrame);
// We want to descend into the out-of-flow frame's subtree,
// not the placeholder frame's!
subtree = outOfFlowFrame;
}
// We want to descend into the out-of-flow frame's subtree,
// not the placeholder frame's!
subtree = outOfFlowFrame;
// Note that if outOfFlowFrame is aRemovedFrame's descendant we don't
// need to explicitly recurse into outOfFlowFrame here, since we'll do
// it whenever we recurse into the appropriate child and into its
// appropriate child list.
}
// Recursively find and delete any of its out-of-flow frames,