mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Remove unused items in gfx (#32423)
This commit is contained in:
parent
5f538b89e0
commit
49e15269c9
2 changed files with 0 additions and 7 deletions
|
@ -35,8 +35,6 @@ use crate::font_cache_thread::{
|
||||||
};
|
};
|
||||||
use crate::font_store::{CrossThreadFontStore, CrossThreadWebRenderFontStore};
|
use crate::font_store::{CrossThreadFontStore, CrossThreadWebRenderFontStore};
|
||||||
use crate::font_template::{FontTemplate, FontTemplateRef, FontTemplateRefMethods};
|
use crate::font_template::{FontTemplate, FontTemplateRef, FontTemplateRefMethods};
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
use crate::platform::core_text_font_cache::CoreTextFontCache;
|
|
||||||
|
|
||||||
static SMALL_CAPS_SCALE_FACTOR: f32 = 0.8; // Matches FireFox (see gfxFont.h)
|
static SMALL_CAPS_SCALE_FACTOR: f32 = 0.8; // Matches FireFox (see gfxFont.h)
|
||||||
|
|
||||||
|
|
|
@ -98,9 +98,4 @@ impl CoreTextFontCache {
|
||||||
identifier_cache.insert(au_size, core_text_font.clone());
|
identifier_cache.insert(au_size, core_text_font.clone());
|
||||||
Some(core_text_font)
|
Some(core_text_font)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn clear_core_text_font_cache() {
|
|
||||||
let cache = CACHE.0.get_or_init(Default::default);
|
|
||||||
cache.write().clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue