Remove warnings from servo-gfx

This commit is contained in:
ILyoan 2013-05-09 17:45:20 +09:00
parent 45d6991805
commit 17523bd978
3 changed files with 3 additions and 4 deletions

View file

@ -293,7 +293,7 @@ pub impl Font {
None => {}
}
let mut scaled_font = self.create_azure_font();
let scaled_font = self.create_azure_font();
self.azure_font = Some(scaled_font);
// try again.
return self.get_azure_font();
@ -385,7 +385,7 @@ pub impl Font {
for run.glyphs.iter_glyphs_for_char_range(range) |_i, glyph| {
advance += glyph.advance();
}
let mut bounds = Rect(Point2D(Au(0), -self.metrics.ascent),
let bounds = Rect(Point2D(Au(0), -self.metrics.ascent),
Size2D(advance, self.metrics.ascent + self.metrics.descent));
// TODO(Issue #125): support loose and tight bounding boxes; using the

View file

@ -4,7 +4,6 @@
use font::{Font, FontDescriptor, FontGroup, FontStyle, SelectorPlatformIdentifier};
use font::{SpecifiedFontStyle, UsedFontStyle};
use font_context;
use font_list::FontList;
use servo_util::cache::Cache;
use servo_util::cache::MonoCache;

View file

@ -32,7 +32,7 @@ pub fn render_layers(layer_ref: *RenderLayer,
f: RenderFn) -> LayerBufferSet {
let tile_size = opts.tile_size;
let mut _buffers = match buffer_set { LayerBufferSet { buffers: b } => b };
let _buffers = match buffer_set { LayerBufferSet { buffers: b } => b };
// FIXME: Try not to create a new array here.
let mut new_buffer_ports = ~[];