mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
style: Update font-weight property and descriptor to css-fonts-4.
Bug: 1454596 Reviewed-by: xidorn MozReview-Commit-ID: 27aS2UrgXjs
This commit is contained in:
parent
76a14d6a64
commit
bc1126ee8c
10 changed files with 199 additions and 141 deletions
|
@ -2607,9 +2607,7 @@ fn static_assert() {
|
|||
|
||||
pub fn clone_font_weight(&self) -> longhands::font_weight::computed_value::T {
|
||||
let weight: f32 = unsafe { Gecko_FontWeight_ToFloat(self.gecko.mFont.weight) };
|
||||
debug_assert!(weight >= 0.0 &&
|
||||
weight <= ::std::u16::MAX as f32);
|
||||
longhands::font_weight::computed_value::T(weight as u16)
|
||||
longhands::font_weight::computed_value::T(weight)
|
||||
}
|
||||
|
||||
${impl_simple_type_with_conversion("font_synthesis", "mFont.synthesis")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue