Support the text-decoration-style property.

This commit is contained in:
Bobby Holley 2016-04-20 13:53:23 -07:00
parent 611a2f0991
commit bba4447637
2 changed files with 1 additions and 4 deletions

View file

@ -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):

View file

@ -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"]