mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Further changes required by Servo
This commit is contained in:
parent
18b9e1b615
commit
7ce706f891
7 changed files with 13 additions and 9 deletions
|
@ -137,7 +137,7 @@ impl<'a> From<&'a FontStyleStruct> for FontDescriptor {
|
|||
FontDescriptor {
|
||||
template_descriptor: FontTemplateDescriptor::from(style),
|
||||
variant: style.font_variant_caps,
|
||||
pt_size: Au::from_f32_px(style.font_size.size().px()),
|
||||
pt_size: Au::from_f32_px(style.font_size.computed_size().px()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ impl<S: FontSource> FontContext<S> {
|
|||
self.expire_font_caches_if_necessary();
|
||||
|
||||
let cache_key = FontGroupCacheKey {
|
||||
size: Au::from_f32_px(style.font_size.size().px()),
|
||||
size: Au::from_f32_px(style.font_size.computed_size().px()),
|
||||
style,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue