mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove warnings from servo-gfx
This commit is contained in:
parent
45d6991805
commit
17523bd978
3 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = ~[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue