Bug 29507. Clean up PresShell refcounting. r=troy
git-svn-id: svn://10.0.0.236/trunk@65336 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ade2ca3d55
commit
c7054a1246
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user