mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Check for font_variant equality in LayoutFontGroupCacheKey::eq.
This fixes an issue whereby normal text would intermittently be rendered as small-caps and vice versa.
This commit is contained in:
parent
ba2714f4f6
commit
05ed98a49c
1 changed files with 1 additions and 0 deletions
|
@ -325,6 +325,7 @@ impl PartialEq for LayoutFontGroupCacheKey {
|
|||
self.pointer.font_stretch == other.pointer.font_stretch &&
|
||||
self.pointer.font_style == other.pointer.font_style &&
|
||||
self.pointer.font_weight as u16 == other.pointer.font_weight as u16 &&
|
||||
self.pointer.font_variant == other.pointer.font_variant &&
|
||||
self.size == other.size
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue