mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Auto merge of #7827 - Ms2ger:jumpy-variant, r=pcwalton
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. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7827) <!-- Reviewable:end -->
This commit is contained in:
commit
c0b397db77
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