Bug 825004 - Part 2: Provide temporary aliases for -moz-text-decoration-*. r=dbaron
authorTooru Fujisawa <arai_a@mac.com>
Tue, 18 Nov 2014 19:23:09 +0900
changeset 240541 6d55e2ca5c39729c49587392ca2b15e596f06dde
parent 240540 ecc30ea0f2c136612eb5d9aa972ad692cbf6414a
child 240542 e4494fa5c82eebb8a9a21de27758fb0275727464
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs825004
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 825004 - Part 2: Provide temporary aliases for -moz-text-decoration-*. r=dbaron
layout/style/nsCSSPropAliasList.h
layout/style/test/property_database.js
--- a/layout/style/nsCSSPropAliasList.h
+++ b/layout/style/nsCSSPropAliasList.h
@@ -122,8 +122,20 @@ CSS_PROP_ALIAS(-moz-box-sizing,
 CSS_PROP_ALIAS(-moz-font-feature-settings,
                font_feature_settings,
                MozFontFeatureSettings,
                "layout.css.prefixes.font-features")
 CSS_PROP_ALIAS(-moz-font-language-override,
                font_language_override,
                MozFontLanguageOverride,
                "layout.css.prefixes.font-features")
+CSS_PROP_ALIAS(-moz-text-decoration-color,
+               text_decoration_color,
+               MozTextDecorationColor,
+               "")
+CSS_PROP_ALIAS(-moz-text-decoration-line,
+               text_decoration_line,
+               MozTextDecorationLine,
+               "")
+CSS_PROP_ALIAS(-moz-text-decoration-style,
+               text_decoration_style,
+               MozTextDecorationStyle,
+               "")
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -3294,32 +3294,60 @@ var gCSSProperties = {
     domProp: "textDecorationColor",
     inherited: false,
     type: CSS_TYPE_LONGHAND,
     prerequisites: { "color": "black" },
     initial_values: [ "currentColor", "-moz-use-text-color" ],
     other_values: [ "green", "rgba(255,128,0,0.5)", "transparent" ],
     invalid_values: [ "#0", "#00", "#0000", "#00000", "#0000000", "#00000000", "#000000000", "000000", "ff00ff" ]
   },
+  "-moz-text-decoration-color": {
+    domProp: "MozTextDecorationColor",
+    inherited: false,
+    type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+    alias_for: "text-decoration-color",
+    prerequisites: { "color": "black" },
+    initial_values: [ "currentColor", "-moz-use-text-color" ],
+    other_values: [ "green", "rgba(255,128,0,0.5)", "transparent" ],
+    invalid_values: [ "#0", "#00", "#0000", "#00000", "#0000000", "#00000000", "#000000000", "000000", "ff00ff" ]
+  },
   "text-decoration-line": {
     domProp: "textDecorationLine",
     inherited: false,
     type: CSS_TYPE_LONGHAND,
     initial_values: [ "none" ],
     other_values: [ "underline", "overline", "line-through", "blink", "blink line-through underline", "underline overline line-through blink", "-moz-anchor-decoration", "blink -moz-anchor-decoration" ],
     invalid_values: [ "none none", "underline none", "none underline", "line-through blink line-through", "underline overline line-through blink none", "underline overline line-throuh blink blink" ]
   },
+  "-moz-text-decoration-line": {
+    domProp: "MozTextDecorationLine",
+    inherited: false,
+    type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+    alias_for: "text-decoration-line",
+    initial_values: [ "none" ],
+    other_values: [ "underline", "overline", "line-through", "blink", "blink line-through underline", "underline overline line-through blink", "-moz-anchor-decoration", "blink -moz-anchor-decoration" ],
+    invalid_values: [ "none none", "underline none", "none underline", "line-through blink line-through", "underline overline line-through blink none", "underline overline line-throuh blink blink" ]
+  },
   "text-decoration-style": {
     domProp: "textDecorationStyle",
     inherited: false,
     type: CSS_TYPE_LONGHAND,
     initial_values: [ "solid" ],
     other_values: [ "double", "dotted", "dashed", "wavy", "-moz-none" ],
     invalid_values: [ "none", "groove", "ridge", "inset", "outset", "solid dashed", "wave" ]
   },
+  "-moz-text-decoration-style": {
+    domProp: "MozTextDecorationStyle",
+    inherited: false,
+    type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+    alias_for: "text-decoration-style",
+    initial_values: [ "solid" ],
+    other_values: [ "double", "dotted", "dashed", "wavy", "-moz-none" ],
+    invalid_values: [ "none", "groove", "ridge", "inset", "outset", "solid dashed", "wave" ]
+  },
   "text-indent": {
     domProp: "textIndent",
     inherited: true,
     type: CSS_TYPE_LONGHAND,
     initial_values: [ "0", "calc(3em - 5em + 2px + 2em - 2px)" ],
     other_values: [ "2em", "5%", "-10px",
       "calc(2px)",
       "calc(-2px)",