mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +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
5
Cargo.lock
generated
5
Cargo.lock
generated
|
@ -3175,7 +3175,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webrender"
|
name = "webrender"
|
||||||
version = "0.35.0"
|
version = "0.35.0"
|
||||||
source = "git+https://github.com/servo/webrender#04eeee4593c11a0d9c934722896c67aa5ddd9554"
|
source = "git+https://github.com/servo/webrender#861fb7b5570d69de37d8a1f364f42f38c87cb2d3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"bincode 1.0.0-alpha6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bincode 1.0.0-alpha6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -3203,10 +3203,11 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webrender_traits"
|
name = "webrender_traits"
|
||||||
version = "0.35.0"
|
version = "0.35.0"
|
||||||
source = "git+https://github.com/servo/webrender#04eeee4593c11a0d9c934722896c67aa5ddd9554"
|
source = "git+https://github.com/servo/webrender#861fb7b5570d69de37d8a1f364f42f38c87cb2d3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"core-foundation 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"core-graphics 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-graphics 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"dwrote 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"dwrote 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -258,10 +258,12 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
||||||
};
|
};
|
||||||
if !slice.glyphs.is_whitespace() {
|
if !slice.glyphs.is_whitespace() {
|
||||||
let glyph_offset = glyph.offset().unwrap_or(Point2D::zero());
|
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 {
|
let glyph = webrender_traits::GlyphInstance {
|
||||||
index: glyph.id(),
|
index: glyph.id(),
|
||||||
point: Point2D::new((origin.x + glyph_offset.x).to_f32_px(),
|
point: point,
|
||||||
(origin.y + glyph_offset.y).to_f32_px()),
|
|
||||||
};
|
};
|
||||||
glyphs.push(glyph);
|
glyphs.push(glyph);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue