diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-09-10 14:17:35 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2015-09-27 15:38:22 -0700 |
commit | 1892b27daff1ce82869cb7470b8bf9fd8720d98f (patch) | |
tree | c6f6b4763e16b1fc8c498cb2c7dd4cb3d9f2b058 /components | |
parent | 9bb6acd69083bc7321b9751afa54f0bce608bb86 (diff) | |
download | servo-1892b27daff1ce82869cb7470b8bf9fd8720d98f.tar.gz servo-1892b27daff1ce82869cb7470b8bf9fd8720d98f.zip |
layout: Do a couple of minor style cleanups.
Diffstat (limited to 'components')
-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(); } |