Bug 1452542 part 4 - Have ENABLED_IN flags in nsCSSPropList.h match those in Servo side. r=emilio

MozReview-Commit-ID: 48t5u1D5rZX

--HG--
extra : rebase_source : 2040c6eb9bef18f39c591ddf364e0b7a9d948996
This commit is contained in:
Xidorn Quan 2018-04-11 13:46:08 +10:00
Родитель 2b130b95d1
Коммит 77184169de
4 изменённых файлов: 8 добавлений и 53 удалений

Просмотреть файл

@ -1448,52 +1448,6 @@ exports.CSS_PROPERTIES = {
"unset"
]
},
"-moz-window-opacity": {
"isInherited": false,
"subproperties": [
"-moz-window-opacity"
],
"supports": [
7
],
"values": [
"inherit",
"initial",
"unset"
]
},
"-moz-window-transform": {
"isInherited": false,
"subproperties": [
"-moz-window-transform"
],
"supports": [],
"values": [
"inherit",
"initial",
"unset"
]
},
"-moz-window-transform-origin": {
"isInherited": false,
"subproperties": [
"-moz-window-transform-origin"
],
"supports": [
6,
8
],
"values": [
"bottom",
"center",
"inherit",
"initial",
"left",
"right",
"top",
"unset"
]
},
"-webkit-align-content": {
"isInherited": false,
"subproperties": [

Просмотреть файл

@ -3404,7 +3404,8 @@ CSS_PROP_(
-moz-window-opacity,
_moz_window_opacity,
CSS_PROP_DOMPROP_PREFIXED(WindowOpacity),
CSS_PROPERTY_INTERNAL | 0,
CSS_PROPERTY_INTERNAL |
CSS_PROPERTY_ENABLED_IN_UA_SHEETS_AND_CHROME,
"",
VARIANT_HN,
nullptr,
@ -3425,6 +3426,7 @@ CSS_PROP_(
CSS_PROP_DOMPROP_PREFIXED(WindowTransform),
CSS_PROPERTY_INTERNAL |
CSS_PROPERTY_PARSE_FUNCTION |
CSS_PROPERTY_ENABLED_IN_UA_SHEETS_AND_CHROME |
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
"",
0,
@ -3436,6 +3438,7 @@ CSS_PROP_(
CSS_PROP_DOMPROP_PREFIXED(WindowTransformOrigin),
CSS_PROPERTY_INTERNAL |
CSS_PROPERTY_PARSE_FUNCTION |
CSS_PROPERTY_ENABLED_IN_UA_SHEETS_AND_CHROME |
CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
"",
0,

Просмотреть файл

@ -2732,7 +2732,7 @@ nsCSSProps::gPropertyEnabled[eCSSProperty_COUNT_with_aliases] = {
// If the property has "ENABLED_IN" flags but doesn't have a pref,
// it is an internal property which is disabled elsewhere.
#define IS_ENABLED_BY_DEFAULT(flags_) \
(!((flags_) & CSS_PROPERTY_ENABLED_MASK))
(!((flags_) & (CSS_PROPERTY_ENABLED_MASK | CSS_PROPERTY_PARSE_INACCESSIBLE)))
#define CSS_PROP(name_, id_, method_, flags_, ...) \
IS_ENABLED_BY_DEFAULT(flags_),

Просмотреть файл

@ -9,11 +9,9 @@ const NON_CONTENT_ACCESSIBLE_PROPERTIES = [
"-x-lang",
"-x-text-zoom",
"-moz-window-shadow",
// FIXME(bug 1419695): These should be hidden, but Gecko would refuse to
// transition them. We need to fix that.
// "-moz-window-opacity",
// "-moz-window-transform",
// "-moz-window-transform-origin",
"-moz-window-opacity",
"-moz-window-transform",
"-moz-window-transform-origin",
"-moz-top-layer",
"-moz-script-size-multiplier",
"-moz-script-level",