diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-06-14 18:14:54 -0500 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-07-11 17:28:56 -0500 |
commit | ef033b8362b143f3671863313bcd792c4bf17f45 (patch) | |
tree | 24da8ea60c03dc7d8ed07a675dbff79135a07ba8 /components/script/dom/window.rs | |
parent | de331c6bc8f987521d600043285d32f42be07048 (diff) | |
download | servo-ef033b8362b143f3671863313bcd792c4bf17f45.tar.gz servo-ef033b8362b143f3671863313bcd792c4bf17f45.zip |
Implemented paint worklet properties.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 5 |
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>> { |