Use the right insertion frame for insertion points. Bug 348049, r+sr=roc

This commit is contained in:
bzbarsky%mit.edu 2006-08-15 01:37:52 +00:00
Родитель 3e79aee9fe
Коммит cf38ea433c
1 изменённых файлов: 3 добавлений и 8 удалений

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

@ -11535,14 +11535,9 @@ nsCSSFrameConstructor::GetInsertionPoint(nsIFrame* aParentFrame,
}
nsIFrame* insertionPoint = mPresShell->GetPrimaryFrameFor(insertionElement);
if (insertionPoint) {
// If the insertion point is a scrollable, then walk ``through''
// it to get the scrolled frame.
nsIScrollableFrame* scroll = nsnull;
CallQueryInterface(insertionPoint, &scroll);
if (scroll)
insertionPoint = scroll->GetScrolledFrame();
if (insertionPoint != aParentFrame)
// Use the content insertion frame of the insertion point.
insertionPoint = insertionPoint->GetContentInsertionFrame();
if (insertionPoint && insertionPoint != aParentFrame)
GetInsertionPoint(insertionPoint, aChildContent, aInsertionPoint, aMultiple);
}
else {