mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
util: Make some minor formatting cleanups to profiling and gfx
This commit is contained in:
parent
f5e8df9dac
commit
d2d012165f
4 changed files with 30 additions and 59 deletions
|
@ -215,7 +215,8 @@ impl FontContext {
|
|||
/// reference if already used by this font context.
|
||||
pub fn get_render_font_from_template(&mut self,
|
||||
template: &Arc<FontTemplateData>,
|
||||
pt_size: Au) -> Rc<RefCell<ScaledFont>> {
|
||||
pt_size: Au)
|
||||
-> Rc<RefCell<ScaledFont>> {
|
||||
for cached_font in self.render_font_cache.iter() {
|
||||
if cached_font.pt_size == pt_size &&
|
||||
cached_font.identifier == template.identifier {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue