Bug 1507540 part 2. Use more notxpcom attributes in docshell/. r=smaug

This commit is contained in:
Boris Zbarsky
2018-11-19 20:17:53 -05:00
parent b5c6678235
commit 685b646fa2
33 changed files with 129 additions and 234 deletions

View File

@@ -422,8 +422,7 @@ nsDocShellTreeOwner::SizeShellTo(nsIDocShellTreeItem* aShellItem,
Set the preferred size on the aShellItem.
*/
RefPtr<nsPresContext> presContext;
mWebBrowser->mDocShell->GetPresContext(getter_AddRefs(presContext));
RefPtr<nsPresContext> presContext = mWebBrowser->mDocShell->GetPresContext();
NS_ENSURE_TRUE(presContext, NS_ERROR_FAILURE);
nsIPresShell* presShell = presContext->GetPresShell();