Skip to content

Commit

Permalink
Update WR (improved double border quality, minor API changes).
Browse files Browse the repository at this point in the history
  • Loading branch information
gw3583 committed Apr 21, 2017
1 parent f44e3cd commit c4b1033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions components/layout/webrender_helpers.rs
Expand Up @@ -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);
}
Expand Down

0 comments on commit c4b1033

Please sign in to comment.