Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -979,12 +979,6 @@ void nsWebShellWindow::DynamicLoadMenus(nsIDOMDocument * aDOMDoc, nsIWidget * aP
|
||||
return;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
if (NS_FAILED(rv = presContext->GetShell(getter_AddRefs(presShell)))) {
|
||||
NS_ERROR("Unable to retrieve the shell from the presentation context.");
|
||||
return;
|
||||
}
|
||||
|
||||
nsRect rect;
|
||||
|
||||
if (NS_FAILED(rv = mWindow->GetClientBounds(rect))) {
|
||||
|
||||
Reference in New Issue
Block a user