Bug 1507540 part 2. Use more notxpcom attributes in docshell/. r=smaug
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user