mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Fix existing syntactics nits.
This commit is contained in:
parent
7f935f010b
commit
8bb853f643
93 changed files with 393 additions and 397 deletions
|
@ -82,7 +82,7 @@ pub struct FontContext {
|
|||
paint_font_cache: Vec<PaintFontCacheEntry>,
|
||||
|
||||
layout_font_group_cache:
|
||||
HashMap<LayoutFontGroupCacheKey,Rc<FontGroup>,DefaultState<FnvHasher>>,
|
||||
HashMap<LayoutFontGroupCacheKey, Rc<FontGroup>, DefaultState<FnvHasher>>,
|
||||
}
|
||||
|
||||
impl FontContext {
|
||||
|
@ -273,7 +273,7 @@ impl FontContext {
|
|||
}
|
||||
|
||||
let paint_font = Rc::new(RefCell::new(create_scaled_font(template, pt_size)));
|
||||
self.paint_font_cache.push(PaintFontCacheEntry{
|
||||
self.paint_font_cache.push(PaintFontCacheEntry {
|
||||
font: paint_font.clone(),
|
||||
pt_size: pt_size,
|
||||
identifier: template.identifier.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue