diff options
Diffstat (limited to 'components/gfx/font_context.rs')
-rw-r--r-- | components/gfx/font_context.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/gfx/font_context.rs b/components/gfx/font_context.rs index e9b14186980..ff2ba9fc256 100644 --- a/components/gfx/font_context.rs +++ b/components/gfx/font_context.rs @@ -165,10 +165,10 @@ impl FontContext { size: style.font_size, address: address, }; - if let Some(ref cached_font_group) = - self.layout_font_group_cache.get(&layout_font_group_cache_key) { - return (*cached_font_group).clone() - } + if let Some(ref cached_font_group) = self.layout_font_group_cache.get( + &layout_font_group_cache_key) { + return (*cached_font_group).clone() + } // TODO: The font context holds a strong ref to the cached fonts // so they will never be released. Find out a good time to drop them. |