mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace Arc<Box<TextRun>> with Arc<TextRun>
This commit is contained in:
parent
afe3d7e747
commit
8a09f738d4
5 changed files with 10 additions and 10 deletions
|
@ -276,7 +276,7 @@ impl TextRunScanner {
|
|||
options.flags.insert(RTL_FLAG);
|
||||
}
|
||||
let mut font = fontgroup.fonts.get(run_info.font_index).unwrap().borrow_mut();
|
||||
Arc::new(box TextRun::new(&mut *font, run_info.text, &options, run_info.bidi_level))
|
||||
Arc::new(TextRun::new(&mut *font, run_info.text, &options, run_info.bidi_level))
|
||||
}).collect::<Vec<_>>()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue