mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Update webrender.
This commit is contained in:
parent
a34d1573b6
commit
b39955df67
11 changed files with 16 additions and 28 deletions
|
@ -182,10 +182,13 @@ impl FontCache {
|
|||
Command::GetFontInstance(font_key, size, result) => {
|
||||
let webrender_api = &self.webrender_api;
|
||||
|
||||
let instance_key = *self
|
||||
.font_instances
|
||||
.entry((font_key, size))
|
||||
.or_insert_with(|| webrender_api.add_font_instance(font_key, size));
|
||||
let instance_key =
|
||||
*self
|
||||
.font_instances
|
||||
.entry((font_key, size))
|
||||
.or_insert_with(|| {
|
||||
webrender_api.add_font_instance(font_key, size.to_f32_px())
|
||||
});
|
||||
|
||||
let _ = result.send(instance_key);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue