зеркало из https://github.com/mozilla/pjs.git
Bug 29507. Clean up PresShell refcounting. r=troy
This commit is contained in:
Родитель
83c1ecb571
Коммит
6ae5675fa2
|
@ -3623,7 +3623,7 @@ nsXULDocument::StartLayout(void)
|
|||
|
||||
PRInt32 count = GetNumberOfShells();
|
||||
for (PRInt32 i = 0; i < count; i++) {
|
||||
nsIPresShell* shell = GetShellAt(i);
|
||||
nsCOMPtr<nsIPresShell> shell = getter_AddRefs(GetShellAt(i));
|
||||
if (nsnull == shell)
|
||||
continue;
|
||||
|
||||
|
@ -3673,8 +3673,6 @@ nsXULDocument::StartLayout(void)
|
|||
// reflow. Otherwise, we'll get into an trouble trying to
|
||||
// create kids before the root frame is established.
|
||||
shell->BeginObservingDocument();
|
||||
|
||||
NS_RELEASE(shell);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -3623,7 +3623,7 @@ nsXULDocument::StartLayout(void)
|
|||
|
||||
PRInt32 count = GetNumberOfShells();
|
||||
for (PRInt32 i = 0; i < count; i++) {
|
||||
nsIPresShell* shell = GetShellAt(i);
|
||||
nsCOMPtr<nsIPresShell> shell = getter_AddRefs(GetShellAt(i));
|
||||
if (nsnull == shell)
|
||||
continue;
|
||||
|
||||
|
@ -3673,8 +3673,6 @@ nsXULDocument::StartLayout(void)
|
|||
// reflow. Otherwise, we'll get into an trouble trying to
|
||||
// create kids before the root frame is established.
|
||||
shell->BeginObservingDocument();
|
||||
|
||||
NS_RELEASE(shell);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче