Update webrender to 790b76f1547453615262c3037e1fb04bda22fbc8.

This commit is contained in:
Josh Matthews 2018-11-06 08:45:03 -05:00
parent 535ea9674f
commit 1c5e4b3067
6 changed files with 82 additions and 78 deletions

View file

@ -272,7 +272,7 @@ impl FontHandleMethods for FontHandle {
pt_size: Option<Au>,
) -> Result<Self, ()> {
let (info, face) = if let Some(ref raw_font) = template.bytes {
let font_file = FontFile::new_from_data(&raw_font);
let font_file = FontFile::new_from_data(Arc::new(raw_font.clone()));
if font_file.is_none() {
// failed to load raw font
return Err(());