From a9839fa18e82c1b9dae126314e4a788fd87738bd Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Mon, 8 Dec 2014 14:17:12 +0900 Subject: [PATCH] Rename RenderFontCacheEntry -> PaintFontCacheEntry. --- components/gfx/font_context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/gfx/font_context.rs b/components/gfx/font_context.rs index 87eb7a77833..b1270b39a47 100644 --- a/components/gfx/font_context.rs +++ b/components/gfx/font_context.rs @@ -52,7 +52,7 @@ struct FallbackFontCacheEntry { /// A cached azure font (per render task) that /// can be shared by multiple text runs. -struct RenderFontCacheEntry { +struct PaintFontCacheEntry { pt_size: Au, identifier: String, font: Rc>, @@ -72,7 +72,7 @@ pub struct FontContext { /// Strong reference as the render FontContext is (for now) recycled /// per frame. TODO: Make this weak when incremental redraw is done. - render_font_cache: Vec, + render_font_cache: Vec, last_style: Option>, last_fontgroup: Option>, @@ -241,7 +241,7 @@ impl FontContext { } let render_font = Rc::new(RefCell::new(create_scaled_font(template, pt_size))); - self.render_font_cache.push(RenderFontCacheEntry{ + self.render_font_cache.push(PaintFontCacheEntry{ font: render_font.clone(), pt_size: pt_size, identifier: template.identifier.clone(),