Bug 1472087 - Remove nsDocShell::CreateLoadInfo; r=nika
We can now just call new nsDocShellLoadInfo instead of worrying about xpcom fallibility. MozReview-Commit-ID: 80tHtBji1Vm
This commit is contained in:
@@ -1024,16 +1024,6 @@ nsDocShell::LoadURI(nsIURI* aURI,
|
||||
nullptr); // No nsIRequest
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::CreateLoadInfo(nsDocShellLoadInfo** aLoadInfo)
|
||||
{
|
||||
nsDocShellLoadInfo* loadInfo = new nsDocShellLoadInfo();
|
||||
RefPtr<nsDocShellLoadInfo> localRef(loadInfo);
|
||||
|
||||
localRef.forget(aLoadInfo);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reset state to a new content model within the current document and the
|
||||
* document viewer. Called by the document before initiating an out of band
|
||||
|
||||
@@ -208,12 +208,6 @@ interface nsIDocShell : nsIDocShellTreeItem
|
||||
void addState(in jsval aData, in DOMString aTitle,
|
||||
in DOMString aURL, in boolean aReplace);
|
||||
|
||||
/**
|
||||
* Creates a DocShellLoadInfo object that you can manipulate and then pass
|
||||
* to loadURI.
|
||||
*/
|
||||
void createLoadInfo(out nsDocShellLoadInfoPtr loadInfo);
|
||||
|
||||
/**
|
||||
* Reset state to a new content model within the current document and the document
|
||||
* viewer. Called by the document before initiating an out of band document.write().
|
||||
|
||||
Reference in New Issue
Block a user