Update WR (improved double border quality, minor API changes).

This commit is contained in:
Glenn Watson 2017-04-21 11:33:40 +10:00
parent f44e3cdae2
commit c4b1033b17
2 changed files with 7 additions and 4 deletions

View file

@ -258,10 +258,12 @@ impl WebRenderDisplayItemConverter for DisplayItem {
};
if !slice.glyphs.is_whitespace() {
let glyph_offset = glyph.offset().unwrap_or(Point2D::zero());
let x = (origin.x + glyph_offset.x).to_f32_px();
let y = (origin.y + glyph_offset.y).to_f32_px();
let point = webrender_traits::LayoutPoint::new(x, y);
let glyph = webrender_traits::GlyphInstance {
index: glyph.id(),
point: Point2D::new((origin.x + glyph_offset.x).to_f32_px(),
(origin.y + glyph_offset.y).to_f32_px()),
point: point,
};
glyphs.push(glyph);
}