diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index a3bd29e3020..10b91e40dbc 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -5257,16 +5257,16 @@ clip-path self.gecko.mContextPropsBits = 0; for (gecko, servo) in self.gecko.mContextProps.iter_mut().zip(v) { - if servo.0 == atom!("fill") { + if (servo.0).0 == atom!("fill") { self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_FILL as u8; - } else if servo.0 == atom!("stroke") { + } else if (servo.0).0 == atom!("stroke") { self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_STROKE as u8; - } else if servo.0 == atom!("fill-opacity") { + } else if (servo.0).0 == atom!("fill-opacity") { self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_FILL_OPACITY as u8; - } else if servo.0 == atom!("stroke-opacity") { + } else if (servo.0).0 == atom!("stroke-opacity") { self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_STROKE_OPACITY as u8; } - gecko.mRawPtr = servo.0.into_addrefed(); + gecko.mRawPtr = (servo.0).0.into_addrefed(); } } diff --git a/components/style/values/specified/svg.rs b/components/style/values/specified/svg.rs index c7a2cac27c9..b8fa6409a03 100644 --- a/components/style/values/specified/svg.rs +++ b/components/style/values/specified/svg.rs @@ -264,7 +264,8 @@ impl ToCss for SVGPaintOrder { /// Specified MozContextProperties value. /// Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-context-properties) -pub type MozContextProperties = CustomIdent; +#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToComputedValue, ToCss)] +pub struct MozContextProperties(pub CustomIdent); impl Parse for MozContextProperties { fn parse<'i, 't>( @@ -273,6 +274,6 @@ impl Parse for MozContextProperties { ) -> Result> { let location = input.current_source_location(); let i = input.expect_ident()?; - CustomIdent::from_ident(location, i, &["all", "none", "auto"]) + Ok(MozContextProperties(CustomIdent::from_ident(location, i, &["all", "none", "auto"])?)) } }