mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
layout: to_string() -> into_string()
This commit is contained in:
parent
e9d1740e19
commit
c7dfb1d24b
5 changed files with 9 additions and 9 deletions
|
@ -493,7 +493,7 @@ impl LayoutTask {
|
|||
// GWTODO: Need to handle unloading web fonts (when we handle unloading stylesheets!)
|
||||
let mut rw_data = self.lock_rw_data(possibly_locked_rw_data);
|
||||
iter_font_face_rules(&sheet, &rw_data.stylist.device, |family, src| {
|
||||
self.font_cache_task.add_web_font(family.to_string(), (*src).clone());
|
||||
self.font_cache_task.add_web_font(family.into_string(), (*src).clone());
|
||||
});
|
||||
rw_data.stylist.add_stylesheet(sheet);
|
||||
LayoutTask::return_rw_data(possibly_locked_rw_data, rw_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue