Bug 1236506: Add support for "-webkit-filter" as an alias for CSS property "filter". r=heycam
authorDaniel Holbert <dholbert@cs.stanford.edu>
Wed, 06 Jan 2016 16:35:33 -0800
changeset 278895 200aa49f81d22a35861a04d4171b3792cca3b9ce
parent 278894 a3af36cb6d5485657d6ba42369449cd26e7477b8
child 278896 53cf113966ff8fe9ae1aa839bd0203a5afb95886
push id29860
push usercbook@mozilla.com
push dateThu, 07 Jan 2016 10:51:20 +0000
treeherdermozilla-central@e0bcd16e1d4b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1236506
milestone46.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 1236506: Add support for "-webkit-filter" as an alias for CSS property "filter". r=heycam
layout/style/nsCSSPropAliasList.h
layout/style/test/property_database.js
--- a/layout/style/nsCSSPropAliasList.h
+++ b/layout/style/nsCSSPropAliasList.h
@@ -215,16 +215,20 @@ CSS_PROP_ALIAS(-webkit-animation-play-st
                animation_play_state,
                WebkitAnimationPlayState,
                WEBKIT_PREFIX_PREF)
 CSS_PROP_ALIAS(-webkit-animation-timing-function,
                animation_timing_function,
                WebkitAnimationTimingFunction,
                WEBKIT_PREFIX_PREF)
 
+CSS_PROP_ALIAS(-webkit-filter,
+               filter,
+               WebkitFilter,
+               WEBKIT_PREFIX_PREF)
 CSS_PROP_ALIAS(-webkit-text-size-adjust,
                text_size_adjust,
                WebkitTextSizeAdjust,
                WEBKIT_PREFIX_PREF)
 
 CSS_PROP_ALIAS(-webkit-transform,
                transform,
                WebkitTransform,
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -6779,16 +6779,23 @@ if (IsCSSPropertyPrefEnabled("layout.css
   };
   gCSSProperties["-webkit-animation-timing-function"] = {
     domProp: "webkitAnimationTimingFunction",
     inherited: false,
     type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
     alias_for: "animation-timing-function",
     subproperties: [ "animation-timing-function" ],
   };
+  gCSSProperties["-webkit-filter"] = {
+    domProp: "webkitFilter",
+    inherited: false,
+    type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+    alias_for: "filter",
+    subproperties: [ "filter" ],
+  };
   gCSSProperties["-webkit-text-size-adjust"] = {
     domProp: "webkitTextSizeAdjust",
     inherited: true,
     type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
     alias_for: "-moz-text-size-adjust",
     subproperties: [ "-moz-text-size-adjust" ],
   };
   gCSSProperties["-webkit-transform"] = {