layout/style/nsCSSPropAliasList.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/style/nsCSSPropAliasList.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,129 @@
     1.4 +/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/*
    1.10 + * a list of all CSS property aliases with data about them, for preprocessing
    1.11 + */
    1.12 +
    1.13 +/******
    1.14 +
    1.15 +  This file contains the list of all CSS properties that are just
    1.16 +  aliases for other properties (e.g., for when we temporarily continue
    1.17 +  to support a prefixed property after adding support for its unprefixed
    1.18 +  form).  It is designed to be used as inline input through the magic of
    1.19 +  C preprocessing.  All entries must be enclosed in the appropriate
    1.20 +  CSS_PROP_ALIAS macro which will have cruel and unusual things done to
    1.21 +  it.
    1.22 +
    1.23 +  The arguments to CSS_PROP_ALIAS are:
    1.24 +
    1.25 +  -. 'aliasname' entries represent a CSS property name and *must* use
    1.26 +  only lowercase characters.
    1.27 +
    1.28 +  -. 'id' should be the same as the 'id' field in nsCSSPropList.h for
    1.29 +  the property that 'aliasname' is being aliased to.
    1.30 +
    1.31 +  -. 'method' is the CSS2Properties property name.  Unlike
    1.32 +  nsCSSPropList.h, prefixes should just be included in this file (rather
    1.33 +  than needing the CSS_PROP_DOMPROP_PREFIXED(prop) macro).
    1.34 +
    1.35 +  -. 'pref' is the name of a pref that controls whether the property
    1.36 +  is enabled.  The property is enabled if 'pref' is an empty string,
    1.37 +  or if the boolean property whose name is 'pref' is set to true.
    1.38 +
    1.39 + ******/
    1.40 +
    1.41 +CSS_PROP_ALIAS(-moz-transform-origin,
    1.42 +               transform_origin,
    1.43 +               MozTransformOrigin,
    1.44 +               "layout.css.prefixes.transforms")
    1.45 +CSS_PROP_ALIAS(-moz-perspective-origin,
    1.46 +               perspective_origin,
    1.47 +               MozPerspectiveOrigin,
    1.48 +               "layout.css.prefixes.transforms")
    1.49 +CSS_PROP_ALIAS(-moz-perspective,
    1.50 +               perspective,
    1.51 +               MozPerspective,
    1.52 +               "layout.css.prefixes.transforms")
    1.53 +CSS_PROP_ALIAS(-moz-transform-style,
    1.54 +               transform_style,
    1.55 +               MozTransformStyle,
    1.56 +               "layout.css.prefixes.transforms")
    1.57 +CSS_PROP_ALIAS(-moz-backface-visibility,
    1.58 +               backface_visibility,
    1.59 +               MozBackfaceVisibility,
    1.60 +               "layout.css.prefixes.transforms")
    1.61 +CSS_PROP_ALIAS(-moz-border-image,
    1.62 +               border_image,
    1.63 +               MozBorderImage,
    1.64 +               "layout.css.prefixes.border-image")
    1.65 +CSS_PROP_ALIAS(-moz-transition,
    1.66 +               transition,
    1.67 +               MozTransition,
    1.68 +               "layout.css.prefixes.transitions")
    1.69 +CSS_PROP_ALIAS(-moz-transition-delay,
    1.70 +               transition_delay,
    1.71 +               MozTransitionDelay,
    1.72 +               "layout.css.prefixes.transitions")
    1.73 +CSS_PROP_ALIAS(-moz-transition-duration,
    1.74 +               transition_duration,
    1.75 +               MozTransitionDuration,
    1.76 +               "layout.css.prefixes.transitions")
    1.77 +CSS_PROP_ALIAS(-moz-transition-property,
    1.78 +               transition_property,
    1.79 +               MozTransitionProperty,
    1.80 +               "layout.css.prefixes.transitions")
    1.81 +CSS_PROP_ALIAS(-moz-transition-timing-function,
    1.82 +               transition_timing_function,
    1.83 +               MozTransitionTimingFunction,
    1.84 +               "layout.css.prefixes.transitions")
    1.85 +CSS_PROP_ALIAS(-moz-animation,
    1.86 +               animation,
    1.87 +               MozAnimation,
    1.88 +               "layout.css.prefixes.animations")
    1.89 +CSS_PROP_ALIAS(-moz-animation-delay,
    1.90 +               animation_delay,
    1.91 +               MozAnimationDelay,
    1.92 +               "layout.css.prefixes.animations")
    1.93 +CSS_PROP_ALIAS(-moz-animation-direction,
    1.94 +               animation_direction,
    1.95 +               MozAnimationDirection,
    1.96 +               "layout.css.prefixes.animations")
    1.97 +CSS_PROP_ALIAS(-moz-animation-duration,
    1.98 +               animation_duration,
    1.99 +               MozAnimationDuration,
   1.100 +               "layout.css.prefixes.animations")
   1.101 +CSS_PROP_ALIAS(-moz-animation-fill-mode,
   1.102 +               animation_fill_mode,
   1.103 +               MozAnimationFillMode,
   1.104 +               "layout.css.prefixes.animations")
   1.105 +CSS_PROP_ALIAS(-moz-animation-iteration-count,
   1.106 +               animation_iteration_count,
   1.107 +               MozAnimationIterationCount,
   1.108 +               "layout.css.prefixes.animations")
   1.109 +CSS_PROP_ALIAS(-moz-animation-name,
   1.110 +               animation_name,
   1.111 +               MozAnimationName,
   1.112 +               "layout.css.prefixes.animations")
   1.113 +CSS_PROP_ALIAS(-moz-animation-play-state,
   1.114 +               animation_play_state,
   1.115 +               MozAnimationPlayState,
   1.116 +               "layout.css.prefixes.animations")
   1.117 +CSS_PROP_ALIAS(-moz-animation-timing-function,
   1.118 +               animation_timing_function,
   1.119 +               MozAnimationTimingFunction,
   1.120 +               "layout.css.prefixes.animations")
   1.121 +CSS_PROP_ALIAS(-moz-box-sizing,
   1.122 +               box_sizing,
   1.123 +               MozBoxSizing,
   1.124 +               "layout.css.prefixes.box-sizing")
   1.125 +CSS_PROP_ALIAS(font-feature-settings,
   1.126 +               font_feature_settings,
   1.127 +               FontFeatureSettings,
   1.128 +               "layout.css.font-features.enabled")
   1.129 +CSS_PROP_ALIAS(font-language-override,
   1.130 +               font_language_override,
   1.131 +               FontLanguageOverride,
   1.132 +               "layout.css.font-features.enabled")

mercurial