diff --git a/components/layout/context.rs b/components/layout/context.rs index 393794bb57b..deda786157d 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -49,7 +49,7 @@ fn create_or_get_local_context(shared_layout_context: &SharedLayoutContext) applicable_declarations_cache: ApplicableDeclarationsCache::new(), style_sharing_candidate_cache: StyleSharingCandidateCache::new(), }; - r.set(unsafe { boxed::into_raw(context) }); + r.set(boxed::into_raw(context)); } else if shared_layout_context.screen_size_changed { unsafe { (*r.get()).applicable_declarations_cache.evict_all();