Bug 30557. Force an immediate reflow after creating a content chain. r=hyatt, a=jar.
git-svn-id: svn://10.0.0.236/trunk@62445 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
44339eaa9f
commit
0286571f17
@ -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.
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user