mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fixups for css-fonts-4 font-weight.
This commit is contained in:
parent
0f19c25706
commit
48de556f8c
10 changed files with 51 additions and 64 deletions
|
@ -2243,7 +2243,7 @@ pub mod style_structs {
|
|||
// Corresponds to the fields in
|
||||
// `gfx::font_template::FontTemplateDescriptor`.
|
||||
let mut hasher: FnvHasher = Default::default();
|
||||
hasher.write_u16(self.font_weight.0);
|
||||
self.font_weight.hash(&mut hasher);
|
||||
self.font_stretch.hash(&mut hasher);
|
||||
self.font_family.hash(&mut hasher);
|
||||
self.hash = hasher.finish()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue