Bug 30557. Force an immediate reflow after creating a content chain. r=hyatt, a=jar.

This commit is contained in:
waterson%netscape.com 2000-03-09 02:27:37 +00:00
Родитель cddacb3a2c
Коммит fa03c9d0a4
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -1488,6 +1488,13 @@ void nsTreeRowGroupFrame::OnContentRemoved(nsIPresContext* aPresContext,
mScrollbar->GetContent(getter_AddRefs(scrollbarContent));
scrollbarContent->SetAttribute(kNameSpaceID_None, nsXULAtoms::curpos,
indexStr, /* notify */ PR_TRUE);
// Now force the reflow to happen immediately, because we need to
// deal with cleaning out the content chain.
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
shell->ProcessReflowCommands(PR_FALSE);
return; // All frames got deleted anyway by the pos change.
}