Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove various warnings #430

Merged
merged 2 commits into from May 10, 2013
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Remove warnings from servo-gfx

  • Loading branch information
ILyoan committed May 10, 2013
commit 17523bd978a4b24e15489a3efbf1bb760ccc62be
@@ -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 = ~[];
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.