diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index f4a507dfb7a..5f9ca67a47c 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1443,6 +1443,22 @@ fn static_assert() { +<%self:impl_trait style_struct_name="InheritedTable" + skip_longhands="border-spacing"> + + pub fn set_border_spacing(&mut self, v: longhands::border_spacing::computed_value::T) { + self.gecko.mBorderSpacingCol = v.horizontal.0; + self.gecko.mBorderSpacingRow = v.vertical.0; + } + + pub fn copy_border_spacing_from(&mut self, other: &Self) { + self.gecko.mBorderSpacingCol = other.gecko.mBorderSpacingCol; + self.gecko.mBorderSpacingRow = other.gecko.mBorderSpacingRow; + } + + + + <%self:impl_trait style_struct_name="InheritedText" skip_longhands="text-align text-shadow line-height word-spacing"> diff --git a/components/style/properties/longhand/inherited_table.mako.rs b/components/style/properties/longhand/inherited_table.mako.rs index e72533bb7b3..18e6bd76e93 100644 --- a/components/style/properties/longhand/inherited_table.mako.rs +++ b/components/style/properties/longhand/inherited_table.mako.rs @@ -16,7 +16,7 @@ ${helpers.single_keyword("caption-side", "top bottom", extra_gecko_values="right left top-outside bottom-outside", animatable=False)} -<%helpers:longhand name="border-spacing" products="servo" animatable="False"> +<%helpers:longhand name="border-spacing" animatable="False"> use app_units::Au; use values::LocalToCss; use values::HasViewportPercentage;