layout/style/nsCSSProperty.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     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/. */
     6 /* enum types for CSS properties and their values */
     8 #ifndef nsCSSProperty_h___
     9 #define nsCSSProperty_h___
    11 /*
    12    Declare the enum list using the magic of preprocessing
    13    enum values are "eCSSProperty_foo" (where foo is the property)
    15    To change the list of properties, see nsCSSPropList.h
    17  */
    18 enum nsCSSProperty {
    19   eCSSProperty_UNKNOWN = -1,
    21   #define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, \
    22                    kwtable_, stylestruct_, stylestructoffset_, animtype_) \
    23     eCSSProperty_##id_,
    24   #include "nsCSSPropList.h"
    25   #undef CSS_PROP
    27   eCSSProperty_COUNT_no_shorthands,
    28   // Make the count continue where it left off:
    29   eCSSProperty_COUNT_DUMMY = eCSSProperty_COUNT_no_shorthands - 1,
    31   #define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) \
    32     eCSSProperty_##id_,
    33   #include "nsCSSPropList.h"
    34   #undef CSS_PROP_SHORTHAND
    36   eCSSProperty_COUNT,
    37   // Make the count continue where it left off:
    38   eCSSProperty_COUNT_DUMMY2 = eCSSProperty_COUNT - 1,
    40   #define CSS_PROP_ALIAS(aliasname_, id_, method_, pref_) \
    41     eCSSPropertyAlias_##method_,
    42   #include "nsCSSPropAliasList.h"
    43   #undef CSS_PROP_ALIAS
    45   eCSSProperty_COUNT_with_aliases,
    46   // Make the count continue where it left off:
    47   eCSSProperty_COUNT_DUMMY3 = eCSSProperty_COUNT_with_aliases - 1,
    49   // Some of the values below could probably overlap with each other
    50   // if we had a need for them to do so.
    52   // Extra values for use in the values of the 'transition-property'
    53   // property.
    54   eCSSPropertyExtra_no_properties,
    55   eCSSPropertyExtra_all_properties,
    57   // Extra dummy values for nsCSSParser internal use.
    58   eCSSPropertyExtra_x_none_value,
    59   eCSSPropertyExtra_x_auto_value,
    61   // Extra value to represent custom properties (--*).
    62   eCSSPropertyExtra_variable
    63 };
    65 // The "descriptors" that can appear in a @font-face rule.
    66 // They have the syntax of properties but different value rules.
    67 enum nsCSSFontDesc {
    68   eCSSFontDesc_UNKNOWN = -1,
    69 #define CSS_FONT_DESC(name_, method_) eCSSFontDesc_##method_,
    70 #include "nsCSSFontDescList.h"
    71 #undef CSS_FONT_DESC
    72   eCSSFontDesc_COUNT
    73 };
    75 #endif /* nsCSSProperty_h___ */

mercurial