From 33b548ae644727f46fca8c875e4f1a845d3973c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 11 Jun 2020 11:27:58 +0000 Subject: [PATCH] style: Use an enum class for LookAndFeel::FontID. Differential Revision: https://phabricator.services.mozilla.com/D76696 --- components/style/properties/longhands/font.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/longhands/font.mako.rs b/components/style/properties/longhands/font.mako.rs index 17836902740..86575720eba 100644 --- a/components/style/properties/longhands/font.mako.rs +++ b/components/style/properties/longhands/font.mako.rs @@ -369,7 +369,7 @@ ${helpers.predefined_type( let id = match *self { % for font in system_fonts: SystemFont::${to_camel_case(font)} => { - LookAndFeel_FontID::eFont_${to_camel_case(font.replace("-moz-", ""))} + LookAndFeel_FontID::${to_camel_case(font.replace("-moz-", ""))} } % endfor };