Bug 363813. Always reset parent pointers when pulling an inline frame's overflow back into its main child list. r+sr=dbaron

This commit is contained in:
roc+%cs.cmu.edu 2006-12-21 19:59:30 +00:00
Родитель fdca21c5e6
Коммит 4e9aee59fe
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -416,9 +416,8 @@ nsInlineFrame::Reflow(nsPresContext* aPresContext,
// Because we lazily set the parent pointer of child frames we get from
// our prev-in-flow's overflow list, it's possible that we have not set
// the parent pointer for these frames. Check the first frame to see, and
// if we haven't set the parent pointer then set it now
mFrames.AppendFrames(overflowFrames->GetParent() == this ? nsnull : this, overflowFrames);
// the parent pointer for these frames.
mFrames.AppendFrames(this, overflowFrames);
}
}