From 185a402d9cc41d3e680b99564f5fc8b519ecf129 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 3 Apr 2020 18:54:11 +0200 Subject: Make DOM own the style and layout data, in an UnsafeCell The previous Cell was a lie. --- components/script/dom/window.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'components/script/dom/window.rs') diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 36916f3ef51..6782047c5a2 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -1399,13 +1399,6 @@ impl Window { } pub fn clear_js_runtime(&self) { - // We tear down the active document, which causes all the attached - // nodes to dispose of their layout data. This messages the layout - // thread, informing it that it can safely free the memory. - self.Document() - .upcast::() - .teardown(self.layout_chan()); - // Remove the infra for managing messageports and broadcast channels. self.upcast::().remove_web_messaging_infra(); -- cgit v1.2.3