mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
3fe42a0b5a
commit
f5ed44c3aa
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue