Bug 1523638 - Part 8: Remove unused arguments from nsDocShell::Embed(), r=bzbarsky

Differential Revision: https://phabricator.services.mozilla.com/D37655

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nika Layzell 2019-07-16 18:47:54 +00:00
Родитель 6a004f4a3e
Коммит 1fd3e64667
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -6365,8 +6365,7 @@ nsresult nsDocShell::RefreshURIFromQueue() {
return NS_OK;
}
nsresult nsDocShell::Embed(nsIContentViewer* aContentViewer,
const char* aCommand, nsISupports* aExtraInfo) {
nsresult nsDocShell::Embed(nsIContentViewer* aContentViewer) {
// Save the LayoutHistoryState of the previous document, before
// setting up new document
PersistLayoutHistoryState();
@ -7181,7 +7180,7 @@ nsresult nsDocShell::CreateAboutBlankContentViewer(
// hook 'em up
if (viewer) {
viewer->SetContainer(this);
rv = Embed(viewer, "", 0);
rv = Embed(viewer);
NS_ENSURE_SUCCESS(rv, rv);
SetCurrentURI(blankDoc->GetDocumentURI(), nullptr, true, 0);
@ -8338,7 +8337,7 @@ nsresult nsDocShell::CreateContentViewer(const nsACString& aContentType,
}
}
NS_ENSURE_SUCCESS(Embed(viewer, "", nullptr), NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(Embed(viewer), NS_ERROR_FAILURE);
if (TreatAsBackgroundLoad()) {
nsCOMPtr<nsIRunnable> triggerParentCheckDocShell =

Просмотреть файл

@ -980,8 +980,7 @@ class nsDocShell final : public nsDocLoader,
nsresult EnsureFind();
nsresult EnsureCommandHandler();
nsresult RefreshURIFromQueue();
nsresult Embed(nsIContentViewer* aContentViewer, const char* aCommand,
nsISupports* aExtraInfo);
nsresult Embed(nsIContentViewer* aContentViewer);
nsPresContext* GetEldestPresContext();
nsresult CheckLoadingPermissions();
nsresult PersistLayoutHistoryState();