LCOV - code coverage report
Current view: top level - layout/style - nsCSSPropAliasList.h (source / functions) Hit Total Coverage
Test: output.info Lines: 108 108 100.0 %
Date: 2017-07-14 16:53:18 Functions: 0 216 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : /*
       7             :  * a list of all CSS property aliases with data about them, for preprocessing
       8             :  */
       9             : 
      10             : /******
      11             : 
      12             :   This file contains the list of all CSS properties that are just
      13             :   aliases for other properties (e.g., for when we temporarily continue
      14             :   to support a prefixed property after adding support for its unprefixed
      15             :   form).  It is designed to be used as inline input through the magic of
      16             :   C preprocessing.  All entries must be enclosed in the appropriate
      17             :   CSS_PROP_ALIAS macro which will have cruel and unusual things done to
      18             :   it.
      19             : 
      20             :   The arguments to CSS_PROP_ALIAS are:
      21             : 
      22             :   -. 'aliasname' entries represent a CSS property name and *must* use
      23             :   only lowercase characters.
      24             : 
      25             :   -. 'id' should be the same as the 'id' field in nsCSSPropList.h for
      26             :   the property that 'aliasname' is being aliased to.
      27             : 
      28             :   -. 'method' is the CSS2Properties property name.  Unlike
      29             :   nsCSSPropList.h, prefixes should just be included in this file (rather
      30             :   than needing the CSS_PROP_DOMPROP_PREFIXED(prop) macro).
      31             : 
      32             :   -. 'pref' is the name of a pref that controls whether the property
      33             :   is enabled.  The property is enabled if 'pref' is an empty string,
      34             :   or if the boolean property whose name is 'pref' is set to true.
      35             : 
      36             :  ******/
      37             : 
      38           3 : CSS_PROP_ALIAS(word-wrap,
      39             :                overflow_wrap,
      40             :                WordWrap,
      41             :                "")
      42           3 : CSS_PROP_ALIAS(-moz-transform-origin,
      43             :                transform_origin,
      44             :                MozTransformOrigin,
      45             :                "layout.css.prefixes.transforms")
      46           3 : CSS_PROP_ALIAS(-moz-perspective-origin,
      47             :                perspective_origin,
      48             :                MozPerspectiveOrigin,
      49             :                "layout.css.prefixes.transforms")
      50           3 : CSS_PROP_ALIAS(-moz-perspective,
      51             :                perspective,
      52             :                MozPerspective,
      53             :                "layout.css.prefixes.transforms")
      54           3 : CSS_PROP_ALIAS(-moz-transform-style,
      55             :                transform_style,
      56             :                MozTransformStyle,
      57             :                "layout.css.prefixes.transforms")
      58           3 : CSS_PROP_ALIAS(-moz-backface-visibility,
      59             :                backface_visibility,
      60             :                MozBackfaceVisibility,
      61             :                "layout.css.prefixes.transforms")
      62           3 : CSS_PROP_ALIAS(-moz-border-image,
      63             :                border_image,
      64             :                MozBorderImage,
      65             :                "layout.css.prefixes.border-image")
      66           3 : CSS_PROP_ALIAS(-moz-transition,
      67             :                transition,
      68             :                MozTransition,
      69             :                "layout.css.prefixes.transitions")
      70           3 : CSS_PROP_ALIAS(-moz-transition-delay,
      71             :                transition_delay,
      72             :                MozTransitionDelay,
      73             :                "layout.css.prefixes.transitions")
      74           3 : CSS_PROP_ALIAS(-moz-transition-duration,
      75             :                transition_duration,
      76             :                MozTransitionDuration,
      77             :                "layout.css.prefixes.transitions")
      78           3 : CSS_PROP_ALIAS(-moz-transition-property,
      79             :                transition_property,
      80             :                MozTransitionProperty,
      81             :                "layout.css.prefixes.transitions")
      82           3 : CSS_PROP_ALIAS(-moz-transition-timing-function,
      83             :                transition_timing_function,
      84             :                MozTransitionTimingFunction,
      85             :                "layout.css.prefixes.transitions")
      86           3 : CSS_PROP_ALIAS(-moz-animation,
      87             :                animation,
      88             :                MozAnimation,
      89             :                "layout.css.prefixes.animations")
      90           3 : CSS_PROP_ALIAS(-moz-animation-delay,
      91             :                animation_delay,
      92             :                MozAnimationDelay,
      93             :                "layout.css.prefixes.animations")
      94           3 : CSS_PROP_ALIAS(-moz-animation-direction,
      95             :                animation_direction,
      96             :                MozAnimationDirection,
      97             :                "layout.css.prefixes.animations")
      98           3 : CSS_PROP_ALIAS(-moz-animation-duration,
      99             :                animation_duration,
     100             :                MozAnimationDuration,
     101             :                "layout.css.prefixes.animations")
     102           3 : CSS_PROP_ALIAS(-moz-animation-fill-mode,
     103             :                animation_fill_mode,
     104             :                MozAnimationFillMode,
     105             :                "layout.css.prefixes.animations")
     106           3 : CSS_PROP_ALIAS(-moz-animation-iteration-count,
     107             :                animation_iteration_count,
     108             :                MozAnimationIterationCount,
     109             :                "layout.css.prefixes.animations")
     110           3 : CSS_PROP_ALIAS(-moz-animation-name,
     111             :                animation_name,
     112             :                MozAnimationName,
     113             :                "layout.css.prefixes.animations")
     114           3 : CSS_PROP_ALIAS(-moz-animation-play-state,
     115             :                animation_play_state,
     116             :                MozAnimationPlayState,
     117             :                "layout.css.prefixes.animations")
     118           3 : CSS_PROP_ALIAS(-moz-animation-timing-function,
     119             :                animation_timing_function,
     120             :                MozAnimationTimingFunction,
     121             :                "layout.css.prefixes.animations")
     122           3 : CSS_PROP_ALIAS(-moz-box-sizing,
     123             :                box_sizing,
     124             :                MozBoxSizing,
     125             :                "layout.css.prefixes.box-sizing")
     126           3 : CSS_PROP_ALIAS(-moz-font-feature-settings,
     127             :                font_feature_settings,
     128             :                MozFontFeatureSettings,
     129             :                "layout.css.prefixes.font-features")
     130           3 : CSS_PROP_ALIAS(-moz-font-language-override,
     131             :                font_language_override,
     132             :                MozFontLanguageOverride,
     133             :                "layout.css.prefixes.font-features")
     134           3 : CSS_PROP_ALIAS(-moz-padding-end,
     135             :                padding_inline_end,
     136             :                MozPaddingEnd,
     137             :                "")
     138           3 : CSS_PROP_ALIAS(-moz-padding-start,
     139             :                padding_inline_start,
     140             :                MozPaddingStart,
     141             :                "")
     142           3 : CSS_PROP_ALIAS(-moz-margin-end,
     143             :                margin_inline_end,
     144             :                MozMarginEnd,
     145             :                "")
     146           3 : CSS_PROP_ALIAS(-moz-margin-start,
     147             :                margin_inline_start,
     148             :                MozMarginStart,
     149             :                "")
     150           3 : CSS_PROP_ALIAS(-moz-border-end,
     151             :                border_inline_end,
     152             :                MozBorderEnd,
     153             :                "")
     154           3 : CSS_PROP_ALIAS(-moz-border-end-color,
     155             :                border_inline_end_color,
     156             :                MozBorderEndColor,
     157             :                "")
     158           3 : CSS_PROP_ALIAS(-moz-border-end-style,
     159             :                border_inline_end_style,
     160             :                MozBorderEndStyle,
     161             :                "")
     162           3 : CSS_PROP_ALIAS(-moz-border-end-width,
     163             :                border_inline_end_width,
     164             :                MozBorderEndWidth,
     165             :                "")
     166           3 : CSS_PROP_ALIAS(-moz-border-start,
     167             :                border_inline_start,
     168             :                MozBorderStart,
     169             :                "")
     170           3 : CSS_PROP_ALIAS(-moz-border-start-color,
     171             :                border_inline_start_color,
     172             :                MozBorderStartColor,
     173             :                "")
     174           3 : CSS_PROP_ALIAS(-moz-border-start-style,
     175             :                border_inline_start_style,
     176             :                MozBorderStartStyle,
     177             :                "")
     178           3 : CSS_PROP_ALIAS(-moz-border-start-width,
     179             :                border_inline_start_width,
     180             :                MozBorderStartWidth,
     181             :                "")
     182           3 : CSS_PROP_ALIAS(-moz-hyphens,
     183             :                hyphens,
     184             :                MozHyphens,
     185             :                "")
     186           3 : CSS_PROP_ALIAS(-moz-column-count,
     187             :                column_count,
     188             :                MozColumnCount,
     189             :                "")
     190           3 : CSS_PROP_ALIAS(-moz-column-fill,
     191             :                column_fill,
     192             :                MozColumnFill,
     193             :                "")
     194           3 : CSS_PROP_ALIAS(-moz-column-gap,
     195             :                column_gap,
     196             :                MozColumnGap,
     197             :                "")
     198           3 : CSS_PROP_ALIAS(-moz-column-rule,
     199             :                column_rule,
     200             :                MozColumnRule,
     201             :                "")
     202           3 : CSS_PROP_ALIAS(-moz-column-rule-color,
     203             :                column_rule_color,
     204             :                MozColumnRuleColor,
     205             :                "")
     206           3 : CSS_PROP_ALIAS(-moz-column-rule-style,
     207             :                column_rule_style,
     208             :                MozColumnRuleStyle,
     209             :                "")
     210           3 : CSS_PROP_ALIAS(-moz-column-rule-width,
     211             :                column_rule_width,
     212             :                MozColumnRuleWidth,
     213             :                "")
     214           3 : CSS_PROP_ALIAS(-moz-column-width,
     215             :                column_width,
     216             :                MozColumnWidth,
     217             :                "")
     218           3 : CSS_PROP_ALIAS(-moz-columns,
     219             :                columns,
     220             :                MozColumns,
     221             :                "")
     222             : 
     223             : #define WEBKIT_PREFIX_PREF "layout.css.prefixes.webkit"
     224             : 
     225             : // -webkit- prefixes
     226           3 : CSS_PROP_ALIAS(-webkit-animation,
     227             :                animation,
     228             :                WebkitAnimation,
     229             :                WEBKIT_PREFIX_PREF)
     230           3 : CSS_PROP_ALIAS(-webkit-animation-delay,
     231             :                animation_delay,
     232             :                WebkitAnimationDelay,
     233             :                WEBKIT_PREFIX_PREF)
     234           3 : CSS_PROP_ALIAS(-webkit-animation-direction,
     235             :                animation_direction,
     236             :                WebkitAnimationDirection,
     237             :                WEBKIT_PREFIX_PREF)
     238           3 : CSS_PROP_ALIAS(-webkit-animation-duration,
     239             :                animation_duration,
     240             :                WebkitAnimationDuration,
     241             :                WEBKIT_PREFIX_PREF)
     242           3 : CSS_PROP_ALIAS(-webkit-animation-fill-mode,
     243             :                animation_fill_mode,
     244             :                WebkitAnimationFillMode,
     245             :                WEBKIT_PREFIX_PREF)
     246           3 : CSS_PROP_ALIAS(-webkit-animation-iteration-count,
     247             :                animation_iteration_count,
     248             :                WebkitAnimationIterationCount,
     249             :                WEBKIT_PREFIX_PREF)
     250           3 : CSS_PROP_ALIAS(-webkit-animation-name,
     251             :                animation_name,
     252             :                WebkitAnimationName,
     253             :                WEBKIT_PREFIX_PREF)
     254           3 : CSS_PROP_ALIAS(-webkit-animation-play-state,
     255             :                animation_play_state,
     256             :                WebkitAnimationPlayState,
     257             :                WEBKIT_PREFIX_PREF)
     258           3 : CSS_PROP_ALIAS(-webkit-animation-timing-function,
     259             :                animation_timing_function,
     260             :                WebkitAnimationTimingFunction,
     261             :                WEBKIT_PREFIX_PREF)
     262             : 
     263           3 : CSS_PROP_ALIAS(-webkit-filter,
     264             :                filter,
     265             :                WebkitFilter,
     266             :                WEBKIT_PREFIX_PREF)
     267           3 : CSS_PROP_ALIAS(-webkit-text-size-adjust,
     268             :                _moz_text_size_adjust,
     269             :                WebkitTextSizeAdjust,
     270             :                WEBKIT_PREFIX_PREF)
     271             : 
     272           3 : CSS_PROP_ALIAS(-webkit-transform,
     273             :                transform,
     274             :                WebkitTransform,
     275             :                WEBKIT_PREFIX_PREF)
     276           3 : CSS_PROP_ALIAS(-webkit-transform-origin,
     277             :                transform_origin,
     278             :                WebkitTransformOrigin,
     279             :                WEBKIT_PREFIX_PREF)
     280           3 : CSS_PROP_ALIAS(-webkit-transform-style,
     281             :                transform_style,
     282             :                WebkitTransformStyle,
     283             :                WEBKIT_PREFIX_PREF)
     284           3 : CSS_PROP_ALIAS(-webkit-backface-visibility,
     285             :                backface_visibility,
     286             :                WebkitBackfaceVisibility,
     287             :                WEBKIT_PREFIX_PREF)
     288           3 : CSS_PROP_ALIAS(-webkit-perspective,
     289             :                perspective,
     290             :                WebkitPerspective,
     291             :                WEBKIT_PREFIX_PREF)
     292           3 : CSS_PROP_ALIAS(-webkit-perspective-origin,
     293             :                perspective_origin,
     294             :                WebkitPerspectiveOrigin,
     295             :                WEBKIT_PREFIX_PREF)
     296             : 
     297           3 : CSS_PROP_ALIAS(-webkit-transition,
     298             :                transition,
     299             :                WebkitTransition,
     300             :                WEBKIT_PREFIX_PREF)
     301           3 : CSS_PROP_ALIAS(-webkit-transition-delay,
     302             :                transition_delay,
     303             :                WebkitTransitionDelay,
     304             :                WEBKIT_PREFIX_PREF)
     305           3 : CSS_PROP_ALIAS(-webkit-transition-duration,
     306             :                transition_duration,
     307             :                WebkitTransitionDuration,
     308             :                WEBKIT_PREFIX_PREF)
     309           3 : CSS_PROP_ALIAS(-webkit-transition-property,
     310             :                transition_property,
     311             :                WebkitTransitionProperty,
     312             :                WEBKIT_PREFIX_PREF)
     313           3 : CSS_PROP_ALIAS(-webkit-transition-timing-function,
     314             :                transition_timing_function,
     315             :                WebkitTransitionTimingFunction,
     316             :                WEBKIT_PREFIX_PREF)
     317             : 
     318           3 : CSS_PROP_ALIAS(-webkit-border-radius,
     319             :                border_radius,
     320             :                WebkitBorderRadius,
     321             :                WEBKIT_PREFIX_PREF)
     322           3 : CSS_PROP_ALIAS(-webkit-border-top-left-radius,
     323             :                border_top_left_radius,
     324             :                WebkitBorderTopLeftRadius, // really no dom property
     325             :                WEBKIT_PREFIX_PREF)
     326           3 : CSS_PROP_ALIAS(-webkit-border-top-right-radius,
     327             :                border_top_right_radius,
     328             :                WebkitBorderTopRightRadius, // really no dom property
     329             :                WEBKIT_PREFIX_PREF)
     330           3 : CSS_PROP_ALIAS(-webkit-border-bottom-left-radius,
     331             :                border_bottom_left_radius,
     332             :                WebkitBorderBottomLeftRadius, // really no dom property
     333             :                WEBKIT_PREFIX_PREF)
     334           3 : CSS_PROP_ALIAS(-webkit-border-bottom-right-radius,
     335             :                border_bottom_right_radius,
     336             :                WebkitBorderBottomRightRadius, // really no dom property
     337             :                WEBKIT_PREFIX_PREF)
     338             : 
     339           3 : CSS_PROP_ALIAS(-webkit-background-clip,
     340             :                background_clip,
     341             :                WebkitBackgroundClip,
     342             :                WEBKIT_PREFIX_PREF)
     343           3 : CSS_PROP_ALIAS(-webkit-background-origin,
     344             :                background_origin,
     345             :                WebkitBackgroundOrigin,
     346             :                WEBKIT_PREFIX_PREF)
     347           3 : CSS_PROP_ALIAS(-webkit-background-size,
     348             :                background_size,
     349             :                WebkitBackgroundSize,
     350             :                WEBKIT_PREFIX_PREF)
     351             : 
     352           3 : CSS_PROP_ALIAS(-webkit-border-image,
     353             :                border_image,
     354             :                WebkitBorderImage,
     355             :                WEBKIT_PREFIX_PREF)
     356             : 
     357           3 : CSS_PROP_ALIAS(-webkit-box-shadow,
     358             :                box_shadow,
     359             :                WebkitBoxShadow,
     360             :                WEBKIT_PREFIX_PREF)
     361           3 : CSS_PROP_ALIAS(-webkit-box-sizing,
     362             :                box_sizing,
     363             :                WebkitBoxSizing,
     364             :                WEBKIT_PREFIX_PREF)
     365             : 
     366             : // Alias -webkit-box properties to their -moz-box equivalents.
     367             : // (NOTE: Even though they're aliases, in practice these -webkit properties
     368             : // will behave a bit differently from their -moz versions, if they're
     369             : // accompanied by "display:-webkit-box", because we generate a different frame
     370             : // for those two display values.)
     371           3 : CSS_PROP_ALIAS(-webkit-box-flex,
     372             :                _moz_box_flex,
     373             :                WebkitBoxFlex,
     374             :                WEBKIT_PREFIX_PREF)
     375           3 : CSS_PROP_ALIAS(-webkit-box-ordinal-group,
     376             :                _moz_box_ordinal_group,
     377             :                WebkitBoxOrdinalGroup,
     378             :                WEBKIT_PREFIX_PREF)
     379           3 : CSS_PROP_ALIAS(-webkit-box-orient,
     380             :                _moz_box_orient,
     381             :                WebkitBoxOrient,
     382             :                WEBKIT_PREFIX_PREF)
     383           3 : CSS_PROP_ALIAS(-webkit-box-direction,
     384             :                _moz_box_direction,
     385             :                WebkitBoxDirection,
     386             :                WEBKIT_PREFIX_PREF)
     387           3 : CSS_PROP_ALIAS(-webkit-box-align,
     388             :                _moz_box_align,
     389             :                WebkitBoxAlign,
     390             :                WEBKIT_PREFIX_PREF)
     391           3 : CSS_PROP_ALIAS(-webkit-box-pack,
     392             :                _moz_box_pack,
     393             :                WebkitBoxPack,
     394             :                WEBKIT_PREFIX_PREF)
     395             : 
     396             : // Alias -webkit-flex related properties to their unprefixed equivalents:
     397             : // (Matching ordering at https://drafts.csswg.org/css-flexbox-1/#property-index )
     398           3 : CSS_PROP_ALIAS(-webkit-flex-direction,
     399             :                flex_direction,
     400             :                WebkitFlexDirection,
     401             :                WEBKIT_PREFIX_PREF)
     402           3 : CSS_PROP_ALIAS(-webkit-flex-wrap,
     403             :                flex_wrap,
     404             :                WebkitFlexWrap,
     405             :                WEBKIT_PREFIX_PREF)
     406           3 : CSS_PROP_ALIAS(-webkit-flex-flow,
     407             :                flex_flow,
     408             :                WebkitFlexFlow,
     409             :                WEBKIT_PREFIX_PREF)
     410           3 : CSS_PROP_ALIAS(-webkit-order,
     411             :                order,
     412             :                WebkitOrder,
     413             :                WEBKIT_PREFIX_PREF)
     414           3 : CSS_PROP_ALIAS(-webkit-flex,
     415             :                flex,
     416             :                WebkitFlex,
     417             :                WEBKIT_PREFIX_PREF)
     418           3 : CSS_PROP_ALIAS(-webkit-flex-grow,
     419             :                flex_grow,
     420             :                WebkitFlexGrow,
     421             :                WEBKIT_PREFIX_PREF)
     422           3 : CSS_PROP_ALIAS(-webkit-flex-shrink,
     423             :                flex_shrink,
     424             :                WebkitFlexShrink,
     425             :                WEBKIT_PREFIX_PREF)
     426           3 : CSS_PROP_ALIAS(-webkit-flex-basis,
     427             :                flex_basis,
     428             :                WebkitFlexBasis,
     429             :                WEBKIT_PREFIX_PREF)
     430           3 : CSS_PROP_ALIAS(-webkit-justify-content,
     431             :                justify_content,
     432             :                WebkitJustifyContent,
     433             :                WEBKIT_PREFIX_PREF)
     434           3 : CSS_PROP_ALIAS(-webkit-align-items,
     435             :                align_items,
     436             :                WebkitAlignItems,
     437             :                WEBKIT_PREFIX_PREF)
     438           3 : CSS_PROP_ALIAS(-webkit-align-self,
     439             :                align_self,
     440             :                WebkitAlignSelf,
     441             :                WEBKIT_PREFIX_PREF)
     442           3 : CSS_PROP_ALIAS(-webkit-align-content,
     443             :                align_content,
     444             :                WebkitAlignContent,
     445             :                WEBKIT_PREFIX_PREF)
     446             : 
     447           3 : CSS_PROP_ALIAS(-webkit-user-select,
     448             :                _moz_user_select,
     449             :                WebkitUserSelect,
     450             :                WEBKIT_PREFIX_PREF)
     451             : 
     452             : #ifdef MOZ_ENABLE_MASK_AS_SHORTHAND
     453           3 : CSS_PROP_ALIAS(-webkit-mask,
     454             :                mask,
     455             :                WebkitMask,
     456             :                WEBKIT_PREFIX_PREF)
     457           3 : CSS_PROP_ALIAS(-webkit-mask-clip,
     458             :                mask_clip,
     459             :                WebkitMaskClip,
     460             :                WEBKIT_PREFIX_PREF)
     461           3 : CSS_PROP_ALIAS(-webkit-mask-composite,
     462             :                mask_composite,
     463             :                WebkitMaskComposite,
     464             :                WEBKIT_PREFIX_PREF)
     465           3 : CSS_PROP_ALIAS(-webkit-mask-image,
     466             :                mask_image,
     467             :                WebkitMaskImage,
     468             :                WEBKIT_PREFIX_PREF)
     469           3 : CSS_PROP_ALIAS(-webkit-mask-origin,
     470             :                mask_origin,
     471             :                WebkitMaskOrigin,
     472             :                WEBKIT_PREFIX_PREF)
     473           3 : CSS_PROP_ALIAS(-webkit-mask-position,
     474             :                mask_position,
     475             :                WebkitMaskPosition,
     476             :                WEBKIT_PREFIX_PREF)
     477           3 : CSS_PROP_ALIAS(-webkit-mask-position-x,
     478             :                mask_position_x,
     479             :                WebkitMaskPositionX,
     480             :                WEBKIT_PREFIX_PREF)
     481           3 : CSS_PROP_ALIAS(-webkit-mask-position-y,
     482             :                mask_position_y,
     483             :                WebkitMaskPositionY,
     484             :                WEBKIT_PREFIX_PREF)
     485           3 : CSS_PROP_ALIAS(-webkit-mask-repeat,
     486             :                mask_repeat,
     487             :                WebkitMaskRepeat,
     488             :                WEBKIT_PREFIX_PREF)
     489           3 : CSS_PROP_ALIAS(-webkit-mask-size,
     490             :                mask_size,
     491             :                WebkitMaskSize,
     492             :                WEBKIT_PREFIX_PREF)
     493             : #endif
     494             : #undef WEBKIT_PREFIX_PREF

Generated by: LCOV version 1.13