From 28d487d31c59826810a32e67ece40732de7c0075 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Mon, 25 Apr 2016 23:46:40 -0700 Subject: [PATCH] Add a no-op compute_font_hash. --- ports/geckolib/properties.mako.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index f3827bcc6c1..aca262ffa16 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -360,10 +360,14 @@ for side in SIDES: } -<%self:impl_trait style_struct_name="Font" skip_longhands="font-size"> +<%self:impl_trait style_struct_name="Font" skip_longhands="font-size" skip_additionals="*"> // FIXME(bholley): This doesn't handle zooming properly. <% impl_app_units("font_size", "mSize", need_clone=True) %> + + // This is used for PartialEq, which we don't implement for gecko style structs. + fn compute_font_hash(&mut self) {} + <%self:impl_trait style_struct_name="Box" skip_longhands="display overflow-y">