From 6c458b04d20a2cef5d7c690b761661f49419b8a2 Mon Sep 17 00:00:00 2001 From: George Roman Date: Fri, 30 Nov 2018 17:10:25 +0200 Subject: [PATCH] Remove unused recycle argument from Document::unload --- components/script/dom/document.rs | 4 ++-- components/script/dom/window.rs | 2 +- components/script/script_thread.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index e15d735527b..2dbfd5648de 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1824,7 +1824,7 @@ impl Document { } // https://html.spec.whatwg.org/multipage/#unload-a-document - pub fn unload(&self, recursive_flag: bool, recycle: bool) { + pub fn unload(&self, recursive_flag: bool) { // TODO: Step 1, increase the event loop's termination nesting level by 1. // Step 2 self.incr_ignore_opens_during_unload_counter(); @@ -1872,7 +1872,7 @@ impl Document { for iframe in self.iter_iframes() { // TODO: handle the case of cross origin iframes. let document = document_from_node(&*iframe); - document.unload(true, recycle); + document.unload(true); if !document.salvageable() { self.salvageable.set(false); } diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 6245f628140..d7f6a45257a 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -604,7 +604,7 @@ impl WindowMethods for Window { // Step 1, prompt to unload. if doc.prompt_to_unload(false) { // Step 2, unload. - doc.unload(false, false); + doc.unload(false); // Step 3, remove from the user interface let _ = self.send_to_embedder(EmbedderMsg::CloseBrowser); // Step 4, discard browsing context. diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index ee06f672bc3..f7bc6b9b26c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2083,7 +2083,7 @@ impl ScriptThread { fn handle_unload_document(&self, pipeline_id: PipelineId) { let document = self.documents.borrow().find_document(pipeline_id); if let Some(document) = document { - document.unload(false, false); + document.unload(false); } }