diff options
-rw-r--r-- | components/gfx/font_context.rs | 8 | ||||
-rw-r--r-- | components/layout/animation.rs | 4 |
2 files changed, 7 insertions, 5 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. diff --git a/components/layout/animation.rs b/components/layout/animation.rs index 863b1eb325a..99d257f38a4 100644 --- a/components/layout/animation.rs +++ b/components/layout/animation.rs @@ -136,5 +136,7 @@ pub fn recalc_style_for_animations(flow: &mut Flow, pub fn tick_all_animations(layout_task: &LayoutTask, rw_data: &mut LayoutTaskData) { layout_task.tick_animations(rw_data); - layout_task.script_chan.send(ConstellationControlMsg::TickAllAnimations(layout_task.id)).unwrap(); + layout_task.script_chan + .send(ConstellationControlMsg::TickAllAnimations(layout_task.id)) + .unwrap(); } |