aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 59c3c678fb3..89877cd780c 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -386,10 +386,7 @@ impl Window {
fn new_paint_worklet(&self) -> Root<Worklet> {
debug!("Creating new paint worklet.");
- let worklet = Worklet::new(self, WorkletGlobalScopeType::Paint);
- let executor = Arc::new(worklet.executor());
- let _ = self.layout_chan.send(Msg::SetPaintWorkletExecutor(executor));
- worklet
+ Worklet::new(self, WorkletGlobalScopeType::Paint)
}
pub fn permission_state_invocation_results(&self) -> &DOMRefCell<HashMap<String, PermissionState>> {