diff --git a/components/style/gecko/rules.rs b/components/style/gecko/rules.rs index 20d438d213d3..790124c5f50c 100644 --- a/components/style/gecko/rules.rs +++ b/components/style/gecko/rules.rs @@ -33,9 +33,9 @@ impl<'a> ToNsCssValue for &'a FontWeight { fn convert(self, nscssvalue: &mut nsCSSValue) { match *self { FontWeight::Normal => - nscssvalue.set_enum(structs::NS_STYLE_FONT_WEIGHT_NORMAL as i32), + nscssvalue.set_enum(structs::NS_FONT_WEIGHT_NORMAL as i32), FontWeight::Bold => - nscssvalue.set_enum(structs::NS_STYLE_FONT_WEIGHT_BOLD as i32), + nscssvalue.set_enum(structs::NS_FONT_WEIGHT_BOLD as i32), FontWeight::Weight(weight) => nscssvalue.set_integer(weight.0 as i32), } } diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 7db1872f487e..655965fcaa30 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -5330,8 +5330,8 @@ pub extern "C" fn Servo_ParseFontShorthandForMatching( }); match font.font_weight { FontWeight::Weight(w) => weight.set_from(w), - FontWeight::Normal => weight.set_enum(structs::NS_STYLE_FONT_WEIGHT_NORMAL as i32), - FontWeight::Bold => weight.set_enum(structs::NS_STYLE_FONT_WEIGHT_BOLD as i32), + FontWeight::Normal => weight.set_enum(structs::NS_FONT_WEIGHT_NORMAL as i32), + FontWeight::Bold => weight.set_enum(structs::NS_FONT_WEIGHT_BOLD as i32), // Resolve relative font weights against the initial of font-weight // (normal, which is equivalent to 400). FontWeight::Bolder => weight.set_enum(structs::NS_FONT_WEIGHT_BOLD as i32),