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:
bryner%brianryner.com
2003-12-21 05:36:36 +00:00
parent 9baef54717
commit b5347dd60c
140 changed files with 729 additions and 1485 deletions

View File

@@ -1200,7 +1200,7 @@ nsDocShell::GetPresShell(nsIPresShell ** aPresShell)
(void) GetPresContext(getter_AddRefs(presContext));
if (presContext) {
rv = presContext->GetShell(aPresShell);
NS_IF_ADDREF(*aPresShell = presContext->GetPresShell());
}
return rv;
@@ -1218,7 +1218,7 @@ nsDocShell::GetEldestPresShell(nsIPresShell** aPresShell)
(void) GetEldestPresContext(getter_AddRefs(presContext));
if (presContext) {
rv = presContext->GetShell(aPresShell);
NS_IF_ADDREF(*aPresShell = presContext->GetPresShell());
}
return rv;