Bumping manifests a=b2g-bump
[gecko.git] / layout / style / nsCSSProperty.h
blobb29ffdd4acc752b04ac40aaa74e1475b0c733602
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___
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
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
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
75 // The "descriptors" that can appear in a @counter-style rule.
76 // They have the syntax of properties but different value rules.
77 enum nsCSSCounterDesc {
78 eCSSCounterDesc_UNKNOWN = -1,
79 #define CSS_COUNTER_DESC(name_, method_) eCSSCounterDesc_##method_,
80 #include "nsCSSCounterDescList.h"
81 #undef CSS_COUNTER_DESC
82 eCSSCounterDesc_COUNT
85 #endif /* nsCSSProperty_h___ */