mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support the text-decoration-style property.
This commit is contained in:
parent
611a2f0991
commit
bba4447637
2 changed files with 1 additions and 4 deletions
|
@ -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):
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue