mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Update WR (improved double border quality, minor API changes).
This commit is contained in:
parent
f44e3cdae2
commit
c4b1033b17
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue