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-18 19:38:20 +00:00
Родитель d3369b5645
Коммит 67eb523bb4
2 изменённых файлов: 4 добавлений и 6 удалений

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

@ -6368,8 +6368,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();
@ -7184,7 +7183,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);
@ -8341,7 +8340,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();