diff options
Diffstat (limited to 'components/script/dom/paintworkletglobalscope.rs')
-rw-r--r-- | components/script/dom/paintworkletglobalscope.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/paintworkletglobalscope.rs b/components/script/dom/paintworkletglobalscope.rs index 91ceedaa576..6a9a517298f 100644 --- a/components/script/dom/paintworkletglobalscope.rs +++ b/components/script/dom/paintworkletglobalscope.rs @@ -131,7 +131,7 @@ impl PaintWorkletGlobalScope { unsafe { PaintWorkletGlobalScopeBinding::Wrap(runtime.cx(), global) } } - pub fn image_cache(&self) -> Arc<ImageCache> { + pub fn image_cache(&self) -> Arc<dyn ImageCache> { self.image_cache.clone() } @@ -396,7 +396,7 @@ impl PaintWorkletGlobalScope { } } - fn painter(&self, name: Atom) -> Box<Painter> { + fn painter(&self, name: Atom) -> Box<dyn Painter> { // Rather annoyingly we have to use a mutex here to make the painter Sync. struct WorkletPainter { name: Atom, |