aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-04-04 09:35:34 -0400
committerGitHub <noreply@github.com>2020-04-04 09:35:34 -0400
commitd64f7d427a8dc56bbfc92183f57588e7eb1d56c2 (patch)
tree5f07578a53872c2d23da16f2d052cda7ff4ef1e4 /components/script/dom/window.rs
parent9972aee81f0e80d34157325a5e13b3b1a7ef417a (diff)
parent185a402d9cc41d3e680b99564f5fc8b519ecf129 (diff)
downloadservo-d64f7d427a8dc56bbfc92183f57588e7eb1d56c2.tar.gz
servo-d64f7d427a8dc56bbfc92183f57588e7eb1d56c2.zip
Auto merge of #26105 - servo:layout-2020-less-opaque, r=emilio
Make DOM own the style and layout data, in an UnsafeCell
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs7
1 files changed, 0 insertions, 7 deletions
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::<Node>()
- .teardown(self.layout_chan());
-
// Remove the infra for managing messageports and broadcast channels.
self.upcast::<GlobalScope>().remove_web_messaging_infra();