From bba44476378043882f98c0949190bc3d0cae7f37 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 20 Apr 2016 13:53:23 -0700 Subject: [PATCH] Support the text-decoration-style property. --- components/style/properties/data.py | 2 +- ports/geckolib/properties.mako.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/components/style/properties/data.py b/components/style/properties/data.py index f7317829d97..fd741f9713a 100644 --- a/components/style/properties/data.py +++ b/components/style/properties/data.py @@ -41,7 +41,7 @@ class Keyword(object): raise Exception("Bad product: " + product) def gecko_constant(self, value): - return self.gecko_constant_prefix + "_" + value.upper().replace("-", "_") + return self.gecko_constant_prefix + "_" + value.replace("-moz-", "").replace("-", "_").upper() class Longhand(object): diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index 486e62f5450..71bcbc1f87a 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -248,9 +248,6 @@ impl Debug for ${style_struct.gecko_ffi_name} { force_stub += ["unicode-bidi", "text-transform"] # Need to figure out why servo has sideways-left computed value and gecko doesn't force_stub += ["text-orientation"] - # Automatic mapping generates NS_STYLE_TEXT_DECORATION_STYLE__MOZ_NONE instead of - # NS_STYLE_TEXT_DECORATION_STYLE__NONE - force_stub += ["text-decoration-style"] # These are booleans. force_stub += ["page-break-after", "page-break-before"]