mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +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
|
@ -178,8 +178,8 @@ impl nsCSSValue {
|
|||
}
|
||||
|
||||
/// Set to a font weight
|
||||
pub fn set_font_weight(&mut self, w: u16) {
|
||||
unsafe { bindings::Gecko_CSSValue_SetFontWeight(self, w as f32) }
|
||||
pub fn set_font_weight(&mut self, w: f32) {
|
||||
unsafe { bindings::Gecko_CSSValue_SetFontWeight(self, w) }
|
||||
}
|
||||
|
||||
fn set_int_internal(&mut self, value: i32, unit: nsCSSUnit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue