mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Remove some obsolete formatting traits.
This commit is contained in:
parent
76b8810a86
commit
be5e9b4278
3 changed files with 4 additions and 4 deletions
|
@ -587,8 +587,8 @@ impl WorkerThread {
|
||||||
let mut buffer = layer_buffer.unwrap();
|
let mut buffer = layer_buffer.unwrap();
|
||||||
draw_target.snapshot().get_data_surface().with_data(|data| {
|
draw_target.snapshot().get_data_surface().with_data(|data| {
|
||||||
buffer.native_surface.upload(native_graphics_context!(self), data);
|
buffer.native_surface.upload(native_graphics_context!(self), data);
|
||||||
debug!("painting worker thread uploading to native surface {:d}",
|
debug!("painting worker thread uploading to native surface {}",
|
||||||
buffer.native_surface.get_id() as int);
|
buffer.native_surface.get_id());
|
||||||
});
|
});
|
||||||
return buffer
|
return buffer
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,7 +255,7 @@ impl FontHandleMethods for FontHandle {
|
||||||
line_gap: height,
|
line_gap: height,
|
||||||
};
|
};
|
||||||
|
|
||||||
debug!("Font metrics (@{:f} pt): {}", geometry::to_pt(em_size), metrics);
|
debug!("Font metrics (@{} pt): {}", geometry::to_pt(em_size), metrics);
|
||||||
return metrics;
|
return metrics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -307,7 +307,7 @@ impl Shaper {
|
||||||
debug!("text: {}", text);
|
debug!("text: {}", text);
|
||||||
debug!("(char idx): char->(glyph index):");
|
debug!("(char idx): char->(glyph index):");
|
||||||
for (i, ch) in text.char_indices() {
|
for (i, ch) in text.char_indices() {
|
||||||
debug!("{}: {} --> {:d}", i, ch, *byte_to_glyph.get(i).unwrap() as int);
|
debug!("{}: {} --> {}", i, ch, byte_to_glyph[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// some helpers
|
// some helpers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue