From a2d3ea57dd98f03346ea88232831b5afc6a7f249 Mon Sep 17 00:00:00 2001 From: Joe Walker Date: Thu, 13 Oct 2016 17:09:44 +0100 Subject: [PATCH] Add support for 'font-kerning' in geckolib --- components/style/properties/gecko.mako.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 2561cd557f0..49fafd342bd 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -449,7 +449,7 @@ impl Debug for ${style_struct.gecko_struct_name} { # These are currently being shuffled to a different style struct on the gecko side. force_stub += ["backface-visibility", "transform-box", "transform-style"] # These live in an nsFont member in Gecko. Should be straightforward to do manually. - force_stub += ["font-kerning", "font-variant"] + force_stub += ["font-variant"] # These have unusual representations in gecko. force_stub += ["list-style-type"] # In a nsTArray, have to be done manually, but probably not too much work @@ -739,7 +739,7 @@ fn static_assert() { <%self:impl_trait style_struct_name="Font" - skip_longhands="font-family font-stretch font-style font-size font-weight" + skip_longhands="font-family font-kerning font-stretch font-style font-size font-weight" skip_additionals="*"> pub fn set_font_family(&mut self, v: longhands::font_family::computed_value::T) { @@ -790,6 +790,11 @@ fn static_assert() { Au(self.gecko.mSize) } + <% kerning_keyword = Keyword("font-kerning", "auto normal none", + gecko_constant_prefix='NS_FONT_KERNING') %> + + ${impl_keyword('font_kerning', 'mFont.kerning', kerning_keyword, need_clone=False)} + <% stretch_keyword = Keyword("font-stretch", "normal ultra-condensed extra-condensed condensed " + "semi-condensed semi-expanded expanded " +