mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #22074 - jdm:wrup, r=nox
Update webrender. Fixes #22114. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22074) <!-- Reviewable:end -->
This commit is contained in:
commit
618a790050
6 changed files with 82 additions and 78 deletions
|
@ -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(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue