diff options
Diffstat (limited to 'components/script/canvas_state.rs')
-rw-r--r-- | components/script/canvas_state.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/canvas_state.rs b/components/script/canvas_state.rs index be8a25f4383..d08f142ca10 100644 --- a/components/script/canvas_state.rs +++ b/components/script/canvas_state.rs @@ -57,7 +57,7 @@ use crate::dom::paintworkletglobalscope::PaintWorkletGlobalScope; use crate::dom::textmetrics::TextMetrics; use crate::unpremultiplytable::UNPREMULTIPLY_TABLE; -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] #[derive(Clone, JSTraceable, MallocSizeOf)] #[allow(dead_code)] pub(crate) enum CanvasFillOrStrokeStyle { @@ -76,7 +76,7 @@ impl CanvasFillOrStrokeStyle { } } -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] #[derive(Clone, JSTraceable, MallocSizeOf)] pub(crate) struct CanvasContextState { global_alpha: f64, @@ -136,7 +136,7 @@ impl CanvasContextState { } } -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] #[derive(JSTraceable, MallocSizeOf)] pub(crate) struct CanvasState { #[ignore_malloc_size_of = "Defined in ipc-channel"] @@ -927,7 +927,7 @@ impl CanvasState { self.send_canvas_2d_msg(Canvas2dMsg::SaveContext); } - #[allow(unrooted_must_root)] + #[allow(crown::unrooted_must_root)] // https://html.spec.whatwg.org/multipage/#dom-context-2d-restore pub fn restore(&self) { let mut saved_states = self.saved_states.borrow_mut(); |