Skip to content

Commit

Permalink
Bug 1516012 - Update webrender to commit ca4ee825c0fecc459c8741f05acb…
Browse files Browse the repository at this point in the history
…d90761667b75 (WR PR #3442). r=kats

servo/webrender#3442

Differential Revision: https://phabricator.services.mozilla.com/D15247

--HG--
extra : moz-landing-system : lando
  • Loading branch information
WR Updater Bot committed Dec 22, 2018
1 parent 6f3aaac commit 8e9ac4d
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 74 deletions.
2 changes: 1 addition & 1 deletion gfx/webrender_bindings/revision.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6bdd0d26afe3fc5a24f10c19d4ca8569d0182a37
ca4ee825c0fecc459c8741f05acbd90761667b75
1 change: 1 addition & 0 deletions gfx/wr/Cargo.lock

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

1 change: 1 addition & 0 deletions gfx/wr/webrender/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ rand = "0.4"

[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
freetype = { version = "0.4", default-features = false }
libc = "0.2"

[target.'cfg(target_os = "windows")'.dependencies]
dwrote = "0.6.3"
Expand Down
2 changes: 2 additions & 0 deletions gfx/wr/webrender/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ extern crate core_text;

#[cfg(all(unix, not(target_os = "macos")))]
extern crate freetype;
#[cfg(all(unix, not(target_os = "macos")))]
extern crate libc;

#[cfg(target_os = "windows")]
extern crate dwrote;
Expand Down
5 changes: 1 addition & 4 deletions gfx/wr/webrender/src/platform/macos/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,7 @@ impl FontContext {
match self.ct_fonts.entry((font_key, size, variations.to_vec())) {
Entry::Occupied(entry) => Some((*entry.get()).clone()),
Entry::Vacant(entry) => {
let cg_font = match self.cg_fonts.get(&font_key) {
None => return None,
Some(cg_font) => cg_font,
};
let cg_font = self.cg_fonts.get(&font_key)?;
let ct_font = new_ct_font_with_variations(cg_font, size.to_f64_px(), variations);
entry.insert(ct_font.clone());
Some(ct_font)
Expand Down
Loading

0 comments on commit 8e9ac4d

Please sign in to comment.