зеркало из https://github.com/mozilla/gecko-dev.git
Bug 30557. Force an immediate reflow after creating a content chain. r=hyatt, a=jar.
This commit is contained in:
Родитель
cddacb3a2c
Коммит
fa03c9d0a4
|
@ -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.
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче