mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
gfx: to_string() -> into_string()
This commit is contained in:
parent
3af73e9962
commit
e973213606
9 changed files with 42 additions and 42 deletions
|
@ -167,7 +167,7 @@ impl FontContext {
|
|||
|
||||
if !cache_hit {
|
||||
let font_template = self.font_cache_task.get_font_template(family.name()
|
||||
.to_string(),
|
||||
.into_string(),
|
||||
desc.clone());
|
||||
match font_template {
|
||||
Some(font_template) => {
|
||||
|
@ -177,14 +177,14 @@ impl FontContext {
|
|||
style.font_variant);
|
||||
let layout_font = Rc::new(RefCell::new(layout_font));
|
||||
self.layout_font_cache.push(LayoutFontCacheEntry {
|
||||
family: family.name().to_string(),
|
||||
family: family.name().into_string(),
|
||||
font: Some(layout_font.clone()),
|
||||
});
|
||||
fonts.push(layout_font);
|
||||
}
|
||||
None => {
|
||||
self.layout_font_cache.push(LayoutFontCacheEntry {
|
||||
family: family.name().to_string(),
|
||||
family: family.name().into_string(),
|
||||
font: None,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue