Don't remove used fonts in collect_unused_webrender_resources (#35506)

The check on whether or not a font should be retained was inverted.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-02-17 12:15:00 +01:00 committed by GitHub
parent 3fe42a0b5a
commit f5ed44c3aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -524,7 +524,7 @@ impl FontContextWebFontMethods for Arc<FontContext> {
});
}
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);