Remove refcounting version of nsIPresShell::GetPresContext. Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@161072 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2436,14 +2436,10 @@ DumpFramesRecurse(nsIDocShell* aDocShell, FILE* out, nsString *aFilterName)
|
||||
nsIFrame* root;
|
||||
shell->GetRootFrame(&root);
|
||||
if (nsnull != root) {
|
||||
nsPresContext* presContext;
|
||||
shell->GetPresContext(&presContext);
|
||||
|
||||
nsIFrameDebug* fdbg;
|
||||
if (NS_SUCCEEDED(CallQueryInterface(root, &fdbg))) {
|
||||
fdbg->List(presContext, out, 0);
|
||||
fdbg->List(shell->GetPresContext(), out, 0);
|
||||
}
|
||||
NS_IF_RELEASE(presContext);
|
||||
}
|
||||
NS_RELEASE(shell);
|
||||
}
|
||||
|
||||
@@ -289,8 +289,7 @@ nsWebCrawler::DumpRegressionData()
|
||||
nsIFrame* root;
|
||||
shell->GetRootFrame(&root);
|
||||
if (nsnull != root) {
|
||||
nsCOMPtr<nsPresContext> presContext;
|
||||
shell->GetPresContext(getter_AddRefs(presContext));
|
||||
nsPresContext *presContext = shell->GetPresContext();
|
||||
|
||||
if (mOutputDir.Length() > 0) {
|
||||
nsAutoString regressionFileName;
|
||||
|
||||
Reference in New Issue
Block a user