From f5ed44c3aa5d40ab15e9486d31871c72e0e7b581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Mon, 17 Feb 2025 12:15:00 +0100 Subject: [PATCH] Don't remove used fonts in collect_unused_webrender_resources (#35506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check on whether or not a font should be retained was inverted. Signed-off-by: Simon Wülker --- components/fonts/font_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fonts/font_context.rs b/components/fonts/font_context.rs index 908d0aba298..212fb587f84 100644 --- a/components/fonts/font_context.rs +++ b/components/fonts/font_context.rs @@ -524,7 +524,7 @@ impl FontContextWebFontMethods for Arc { }); } - font_data.retain(|font_identifier, _| unused_identifiers.contains(font_identifier)); + font_data.retain(|font_identifier, _| !unused_identifiers.contains(font_identifier)); self.have_removed_web_fonts.store(false, Ordering::Relaxed);