Bug 460803. Start layout more like the content sinks do. r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@254918 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -269,8 +269,15 @@ nsMediaDocument::StartLayout()
|
||||
nsPresShellIterator iter(this);
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
while ((shell = iter.GetNextShell())) {
|
||||
PRBool didInitialReflow = PR_FALSE;
|
||||
shell->GetDidInitialReflow(&didInitialReflow);
|
||||
if (didInitialReflow) {
|
||||
// Don't mess with this presshell: someone has already handled
|
||||
// its initial reflow.
|
||||
continue;
|
||||
}
|
||||
|
||||
nsRect visibleArea = shell->GetPresContext()->GetVisibleArea();
|
||||
nsCOMPtr<nsIPresShell> shellGrip = shell;
|
||||
nsresult rv = shell->InitialReflow(visibleArea.width, visibleArea.height);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user