diff --git a/Cargo.lock b/Cargo.lock index 5439ff514d5..9dcd150f570 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3168,7 +3168,7 @@ dependencies = [ [[package]] name = "webrender" version = "0.35.0" -source = "git+https://github.com/servo/webrender#04eeee4593c11a0d9c934722896c67aa5ddd9554" +source = "git+https://github.com/servo/webrender#861fb7b5570d69de37d8a1f364f42f38c87cb2d3" dependencies = [ "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)", @@ -3196,10 +3196,11 @@ dependencies = [ [[package]] name = "webrender_traits" version = "0.35.0" -source = "git+https://github.com/servo/webrender#04eeee4593c11a0d9c934722896c67aa5ddd9554" +source = "git+https://github.com/servo/webrender#861fb7b5570d69de37d8a1f364f42f38c87cb2d3" dependencies = [ "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)", + "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)", "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)", diff --git a/components/gfx/platform/macos/font_template.rs b/components/gfx/platform/macos/font_template.rs index 3cd5fecdb01..d731347d798 100644 --- a/components/gfx/platform/macos/font_template.rs +++ b/components/gfx/platform/macos/font_template.rs @@ -18,6 +18,7 @@ use std::fs::File; use std::io::{Read, Error as IoError}; use std::ops::Deref; use std::sync::Mutex; +use webrender_traits::NativeFontHandle; /// Platform specific font representation for mac. /// The identifier is a PostScript font name. The @@ -106,8 +107,8 @@ impl FontTemplateData { } /// Returns the native font that underlies this font template, if applicable. - pub fn native_font(&self) -> Option { - self.ctfont(0.0).map(|ctfont| ctfont.copy_to_CGFont()) + pub fn native_font(&self) -> Option { + self.ctfont(0.0).map(|ctfont| NativeFontHandle(ctfont.copy_to_CGFont())) } } diff --git a/components/layout/webrender_helpers.rs b/components/layout/webrender_helpers.rs index 9756ea6d1d6..92012d71cb7 100644 --- a/components/layout/webrender_helpers.rs +++ b/components/layout/webrender_helpers.rs @@ -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); } diff --git a/tests/wpt/metadata-css/css-transforms-1_dev/html/transform-input-018.htm.ini b/tests/wpt/metadata-css/css-transforms-1_dev/html/transform-input-018.htm.ini index 23299ad9e96..b840beb7362 100644 --- a/tests/wpt/metadata-css/css-transforms-1_dev/html/transform-input-018.htm.ini +++ b/tests/wpt/metadata-css/css-transforms-1_dev/html/transform-input-018.htm.ini @@ -1,3 +1,5 @@ [transform-input-018.htm] type: reftest - expected: FAIL + expected: + if os == "linux": FAIL +