Bug 1454297 - Remove CSS_PROP_LOGICAL and friends. r=emilio

MozReview-Commit-ID: Euzbjf9qkmO

--HG--
extra : rebase_source : 9b76e8b303d89f65e28ced8cb15b7422f6d31775
This commit is contained in:
Xidorn Quan 2018-04-16 16:23:33 +10:00
parent cbdd3db954
commit 9b466fa2d1
10 changed files with 35 additions and 141 deletions

View File

@ -61,12 +61,10 @@ def generate_property_map(f, counters):
print('''
enum {
#define CSS_PROP_PUBLIC_OR_PRIVATE(publicname_, privatename_) privatename_
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP(name_, id_, method_, ...) \\
USE_COUNTER_FOR_CSS_PROPERTY_##method_ = eUseCounter_UNKNOWN,
#include "nsCSSPropList.h"
#undef CSS_PROP
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_PUBLIC_OR_PRIVATE
};
''', file=f)

View File

@ -18,12 +18,12 @@ def get_properties(preprocessorHeader):
"flags":p[3], "pref":p[4], "proptype":p[5]}
for (i, p) in enumerate(eval(preprocessed))]
# Sort the list so that longhand and logical properties are intermingled
# first, shorthand properties follow, then aliases appear last. This matches
# the order of the nsCSSPropertyID enum.
# Sort the list so that longhand properties are intermingled first,
# shorthand properties follow, then aliases appear last.
# This matches the order of the nsCSSPropertyID enum.
def property_compare(x, y):
property_order = {"longhand": 0, "logical": 0, "shorthand": 1, "alias": 2}
property_order = {"longhand": 0, "shorthand": 1, "alias": 2}
return property_order[x["proptype"]] - property_order[y["proptype"]]
properties = sorted(properties, cmp=property_compare)

View File

@ -20,14 +20,11 @@
DO_PROP(name, method, id, flags, pref, "longhand")
#define CSS_PROP_SHORTHAND(name, id, method, flags, pref) \
DO_PROP(name, method, id, flags, pref, "shorthand")
#define CSS_PROP_LOGICAL(name, id, method, flags, pref, ...) \
DO_PROP(name, method, id, flags, pref, "logical")
#define CSS_PROP_PUBLIC_OR_PRIVATE(publicname_, privatename_) publicname_
#include "nsCSSPropList.h"
#undef CSS_PROP_PUBLIC_OR_PRIVATE
#undef CSS_PROP_LOGICAL
#undef CSS_PROP_SHORTHAND
#undef CSS_PROP

View File

@ -13,17 +13,13 @@ namespace mozilla {
const bool SERVO_PREF_ENABLED_##id_ = !(sizeof(pref_) == 1);
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) \
const bool SERVO_PREF_ENABLED_##id_ = !(sizeof(pref_) == 1);
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#undef CSS_PROP_SHORTHAND
#define CSS_PROP_ALIAS(aliasname_, aliasid_, id_, method_, pref_) \
const bool SERVO_PREF_ENABLED_##aliasid_ = !(sizeof(pref_) == 1);
#define CSS_PROP_ALIAS_LIST_INCLUDE_LOGICAL
#include "nsCSSPropAliasList.h"
#undef CSS_PROP_ALIAS_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_ALIAS
}

View File

@ -18,7 +18,7 @@
It is recommended (but not strictly necessary) to keep all entries in
alphabetical order.
The arguments to CSS_PROP, CSS_PROP_LOGICAL and CSS_PROP_* are:
The arguments to CSS_PROP are:
-. 'name' entries represent a CSS property name and *must* use only
lowercase characters.
@ -52,19 +52,11 @@
keyword table member of class nsCSSProps, for use in
nsCSSProps::LookupPropertyValue.
-. 'stylestruct_' [used only for CSS_PROP and CSS_PROP_LOGICAL, not
CSS_PROP_*] gives the name of the style struct. Can be used to make
nsStyle##stylestruct_ and eStyleStruct_##stylestruct_
-. 'animtype_' gives the animation type (see nsStyleAnimType) of this
property.
CSS_PROP_SHORTHAND only takes 1-5.
CSS_PROP_LOGICAL should be used instead of CSS_PROP_struct when
defining logical properties. Logical shorthand properties should
still be defined with CSS_PROP_SHORTHAND.
******/
@ -87,26 +79,6 @@
// #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL section must have the
// CSS_PROPERTY_INTERNAL flag set.
// When capturing all properties by defining CSS_PROP, callers must also
// define one of the following three macros:
//
// CSS_PROP_LIST_EXCLUDE_LOGICAL
// Does not include logical properties (defined with CSS_PROP_LOGICAL,
// such as margin-inline-start) when capturing properties to CSS_PROP.
//
// CSS_PROP_LIST_INCLUDE_LOGICAL
// Does include logical properties when capturing properties to
// CSS_PROP.
//
// CSS_PROP_LOGICAL
// Captures logical properties separately to CSS_PROP_LOGICAL.
//
// (CSS_PROP_LIST_EXCLUDE_LOGICAL is used for example to ensure
// gPropertyCountInStruct and gPropertyIndexInStruct do not allocate any
// storage to logical properties, since the result of the cascade, stored
// in an nsRuleData, does not need to store both logical and physical
// property values.)
// Callers may also define CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
// to exclude properties that are not considered to be components of the 'all'
// shorthand property. Currently this excludes 'direction' and 'unicode-bidi',
@ -125,43 +97,14 @@
// a chance to be expanded.
#define CSS_PROP_(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_)
// And similarly for logical properties. An includer can define
// CSS_PROP_LOGICAL to capture all logical properties, but otherwise they
// are included in CSS_PROP (as long as CSS_PROP_LIST_INCLUDE_LOGICAL is
// defined).
#if defined(CSS_PROP_LOGICAL) && defined(CSS_PROP_LIST_EXCLUDE_LOGICAL) || defined(CSS_PROP_LOGICAL) && defined(CSS_PROP_LIST_INCLUDE_LOGICAL) || defined(CSS_PROP_LIST_EXCLUDE_LOGICAL) && defined(CSS_PROP_LIST_INCLUDE_LOGICAL)
#error Do not define more than one of CSS_PROP_LOGICAL, CSS_PROP_LIST_EXCLUDE_LOGICAL and CSS_PROP_LIST_INCLUDE_LOGICAL when capturing properties using CSS_PROP.
#endif
#ifndef CSS_PROP_LOGICAL
#ifdef CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP_LOGICAL(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_)
#else
#ifndef CSS_PROP_LIST_EXCLUDE_LOGICAL
#error Must define exactly one of CSS_PROP_LOGICAL, CSS_PROP_LIST_EXCLUDE_LOGICAL and CSS_PROP_LIST_INCLUDE_LOGICAL when capturing properties using CSS_PROP.
#endif
#define CSS_PROP_LOGICAL(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_) /* nothing */
#endif
#define DEFINED_CSS_PROP_LOGICAL
#endif
#else /* !defined(CSS_PROP) */
// An includer who does not define CSS_PROP can define any or all of the
// per-struct macros that are equivalent to it, and the rest will be
// ignored.
#if defined(CSS_PROP_LIST_EXCLUDE_LOGICAL) || defined(CSS_PROP_LIST_INCLUDE_LOGICAL)
#error Do not define CSS_PROP_LIST_EXCLUDE_LOGICAL or CSS_PROP_LIST_INCLUDE_LOGICAL when not capturing properties using CSS_PROP.
#endif
#define CSS_PROP_(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_) /* nothing */
#ifndef CSS_PROP_LOGICAL
#define CSS_PROP_LOGICAL(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, animtype_) /* nothing */
#define DEFINED_CSS_PROP_LOGICAL
#endif
#endif /* !defined(CSS_PROP) */
/*************************************************************************/
@ -443,7 +386,7 @@ CSS_PROP_(
VARIANT_HUO,
nullptr,
eStyleAnimType_None) // XXX bug 3935
CSS_PROP_LOGICAL(
CSS_PROP_(
block-size,
block_size,
BlockSize,
@ -464,7 +407,7 @@ CSS_PROP_SHORTHAND(
BorderBlockEnd,
CSS_PROPERTY_PARSE_FUNCTION,
"")
CSS_PROP_LOGICAL(
CSS_PROP_(
border-block-end-color,
border_block_end_color,
BorderBlockEndColor,
@ -473,7 +416,7 @@ CSS_PROP_LOGICAL(
VARIANT_HC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-block-end-style,
border_block_end_style,
BorderBlockEndStyle,
@ -482,7 +425,7 @@ CSS_PROP_LOGICAL(
VARIANT_HK,
kBorderStyleKTable,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-block-end-width,
border_block_end_width,
BorderBlockEndWidth,
@ -497,7 +440,7 @@ CSS_PROP_SHORTHAND(
BorderBlockStart,
CSS_PROPERTY_PARSE_FUNCTION,
"")
CSS_PROP_LOGICAL(
CSS_PROP_(
border-block-start-color,
border_block_start_color,
BorderBlockStartColor,
@ -506,7 +449,7 @@ CSS_PROP_LOGICAL(
VARIANT_HC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-block-start-style,
border_block_start_style,
BorderBlockStartStyle,
@ -515,7 +458,7 @@ CSS_PROP_LOGICAL(
VARIANT_HK,
kBorderStyleKTable,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-block-start-width,
border_block_start_width,
BorderBlockStartWidth,
@ -647,7 +590,7 @@ CSS_PROP_SHORTHAND(
BorderInlineEnd,
CSS_PROPERTY_PARSE_FUNCTION,
"")
CSS_PROP_LOGICAL(
CSS_PROP_(
border-inline-end-color,
border_inline_end_color,
BorderInlineEndColor,
@ -656,7 +599,7 @@ CSS_PROP_LOGICAL(
VARIANT_HC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-inline-end-style,
border_inline_end_style,
BorderInlineEndStyle,
@ -665,7 +608,7 @@ CSS_PROP_LOGICAL(
VARIANT_HK,
kBorderStyleKTable,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-inline-end-width,
border_inline_end_width,
BorderInlineEndWidth,
@ -680,7 +623,7 @@ CSS_PROP_SHORTHAND(
BorderInlineStart,
CSS_PROPERTY_PARSE_FUNCTION,
"")
CSS_PROP_LOGICAL(
CSS_PROP_(
border-inline-start-color,
border_inline_start_color,
BorderInlineStartColor,
@ -689,7 +632,7 @@ CSS_PROP_LOGICAL(
VARIANT_HC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-inline-start-style,
border_inline_start_style,
BorderInlineStartStyle,
@ -698,7 +641,7 @@ CSS_PROP_LOGICAL(
VARIANT_HK,
kBorderStyleKTable,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
border-inline-start-width,
border_inline_start_width,
BorderInlineStartWidth,
@ -1771,7 +1714,7 @@ CSS_PROP_(
VARIANT_HK,
kIMEModeKTable,
eStyleAnimType_Discrete)
CSS_PROP_LOGICAL(
CSS_PROP_(
inline-size,
inline_size,
InlineSize,
@ -1906,7 +1849,7 @@ CSS_PROP_SHORTHAND(
Margin,
CSS_PROPERTY_PARSE_FUNCTION,
"")
CSS_PROP_LOGICAL(
CSS_PROP_(
margin-block-end,
margin_block_end,
MarginBlockEnd,
@ -1915,7 +1858,7 @@ CSS_PROP_LOGICAL(
VARIANT_AHLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
margin-block-start,
margin_block_start,
MarginBlockStart,
@ -1933,7 +1876,7 @@ CSS_PROP_(
VARIANT_AHLP | VARIANT_CALC,
nullptr,
eStyleAnimType_Sides_Bottom)
CSS_PROP_LOGICAL(
CSS_PROP_(
margin-inline-end,
margin_inline_end,
MarginInlineEnd,
@ -1942,7 +1885,7 @@ CSS_PROP_LOGICAL(
VARIANT_AHLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
margin-inline-start,
margin_inline_start,
MarginInlineStart,
@ -2141,7 +2084,7 @@ CSS_PROP_(
eStyleAnimType_None)
#endif // CSS_PROP_LIST_EXCLUDE_INTERNAL
#endif // CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
CSS_PROP_LOGICAL(
CSS_PROP_(
max-block-size,
max_block_size,
MaxBlockSize,
@ -2159,7 +2102,7 @@ CSS_PROP_(
VARIANT_HKLPO | VARIANT_CALC,
kWidthKTable,
eStyleAnimType_Coord)
CSS_PROP_LOGICAL(
CSS_PROP_(
max-inline-size,
max_inline_size,
MaxInlineSize,
@ -2177,7 +2120,7 @@ CSS_PROP_(
VARIANT_HKLPO | VARIANT_CALC,
kWidthKTable,
eStyleAnimType_Coord)
CSS_PROP_LOGICAL(
CSS_PROP_(
min-block-size,
min_block_size,
MinBlockSize,
@ -2207,7 +2150,7 @@ CSS_PROP_(
VARIANT_AHKLP | VARIANT_CALC,
kWidthKTable,
eStyleAnimType_Coord)
CSS_PROP_LOGICAL(
CSS_PROP_(
min-inline-size,
min_inline_size,
MinInlineSize,
@ -2252,7 +2195,7 @@ CSS_PROP_(
VARIANT_CALC,
kImageLayerPositionKTable,
eStyleAnimType_Custom)
CSS_PROP_LOGICAL(
CSS_PROP_(
offset-block-end,
offset_block_end,
OffsetBlockEnd,
@ -2261,7 +2204,7 @@ CSS_PROP_LOGICAL(
VARIANT_AHLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
offset-block-start,
offset_block_start,
OffsetBlockStart,
@ -2270,7 +2213,7 @@ CSS_PROP_LOGICAL(
VARIANT_AHLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
offset-inline-end,
offset_inline_end,
OffsetInlineEnd,
@ -2279,7 +2222,7 @@ CSS_PROP_LOGICAL(
VARIANT_AHLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
offset-inline-start,
offset_inline_start,
OffsetInlineStart,
@ -2463,7 +2406,7 @@ CSS_PROP_SHORTHAND(
Padding,
CSS_PROPERTY_PARSE_FUNCTION,
"")
CSS_PROP_LOGICAL(
CSS_PROP_(
padding-block-end,
padding_block_end,
PaddingBlockEnd,
@ -2472,7 +2415,7 @@ CSS_PROP_LOGICAL(
VARIANT_HLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
padding-block-start,
padding_block_start,
PaddingBlockStart,
@ -2490,7 +2433,7 @@ CSS_PROP_(
VARIANT_HLP | VARIANT_CALC,
nullptr,
eStyleAnimType_Sides_Bottom)
CSS_PROP_LOGICAL(
CSS_PROP_(
padding-inline-end,
padding_inline_end,
PaddingInlineEnd,
@ -2499,7 +2442,7 @@ CSS_PROP_LOGICAL(
VARIANT_HLP | VARIANT_CALC,
nullptr,
eStyleAnimType_None)
CSS_PROP_LOGICAL(
CSS_PROP_(
padding-inline-start,
padding_inline_start,
PaddingInlineStart,
@ -3542,9 +3485,5 @@ CSS_PROP_(
#undef CSS_PROP_SHORTHAND
#undef DEFINED_CSS_PROP_SHORTHAND
#endif
#ifdef DEFINED_CSS_PROP_LOGICAL
#undef CSS_PROP_LOGICAL
#undef DEFINED_CSS_PROP_LOGICAL
#endif
#undef CSS_PROP_DOMPROP_PREFIXED

View File

@ -22,9 +22,7 @@ enum nsCSSPropertyID {
eCSSProperty_UNKNOWN = -1,
#define CSS_PROP(name_, id_, ...) eCSSProperty_##id_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
eCSSProperty_COUNT_no_shorthands,

View File

@ -41,11 +41,9 @@ typedef nsCSSProps::KTableEntry KTableEntry;
static_assert(!((flags_) & CSS_PROPERTY_ENABLED_MASK) || pref_[0], \
"Internal-only property '" #name_ "' should be wrapped in " \
"#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL");
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP_LIST_EXCLUDE_INTERNAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#define CSS_PROP(name_, id_, method_, flags_, pref_, ...) \
@ -53,9 +51,7 @@ typedef nsCSSProps::KTableEntry KTableEntry;
((flags_) & CSS_PROPERTY_ENABLED_IN_UA_SHEETS), \
"Property '" #name_ "' is enabled in chrome, so it should " \
"also be enabled in UA sheets");
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
// required to make the symbol external, so that TestCSSPropertyLookup.cpp can link with it
@ -64,9 +60,7 @@ extern const char* const kCSSRawProperties[];
// define an array of all CSS properties
const char* const kCSSRawProperties[eCSSProperty_COUNT_with_aliases] = {
#define CSS_PROP(name_, ...) #name_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) #name_,
#include "nsCSSPropList.h"
@ -189,9 +183,7 @@ nsCSSProps::AddRefTable(void)
#define CSS_PROP(name_, id_, method_, flags_, pref_, ...) \
OBSERVE_PROP(pref_, eCSSProperty_##id_)
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) \
@ -242,11 +234,9 @@ nsCSSProps::AddRefTable(void)
static nsCSSPropertyID nonInternalProperties[] = {
#define CSS_PROP(name_, id_, ...) eCSSProperty_##id_,
#define CSS_PROP_SHORTHAND(name_, id_, ...) eCSSProperty_##id_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP_LIST_EXCLUDE_INTERNAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_SHORTHAND
#undef CSS_PROP
};
@ -2228,9 +2218,7 @@ nsCSSProps::ValueToKeyword(int32_t aValue, const KTableEntry aTable[])
nsCSSProps::kKeywordTableTable[eCSSProperty_COUNT_no_shorthands] = {
#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, \
kwtable_, ...) kwtable_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
};
@ -2277,17 +2265,13 @@ nsCSSProps::kAnimTypeTable[eCSSProperty_COUNT_no_shorthands] = {
#define CSS_PROP(name_, id_, method_, flags_, pref_, \
parsevariant_, kwtable_, animtype_) \
animtype_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
};
const uint32_t nsCSSProps::kFlagsTable[eCSSProperty_COUNT] = {
#define CSS_PROP(name_, id_, method_, flags_, ...) flags_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) flags_,
#include "nsCSSPropList.h"
@ -2296,11 +2280,9 @@ const uint32_t nsCSSProps::kFlagsTable[eCSSProperty_COUNT] = {
static const nsCSSPropertyID gAllSubpropTable[] = {
#define CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP(name_, id_, ...) eCSSProperty_##id_,
#include "nsCSSPropList.h"
#undef CSS_PROP
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
eCSSProperty_UNKNOWN
};
@ -2754,9 +2736,7 @@ nsCSSProps::gPropertyEnabled[eCSSProperty_COUNT_with_aliases] = {
#define CSS_PROP(name_, id_, method_, flags_, ...) \
IS_ENABLED_BY_DEFAULT(flags_),
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) \
@ -2777,12 +2757,10 @@ nsCSSProps::gPropertyEnabled[eCSSProperty_COUNT_with_aliases] = {
/* static */ const UseCounter
nsCSSProps::gPropertyUseCounter[eCSSProperty_COUNT_no_shorthands] = {
#define CSS_PROP_PUBLIC_OR_PRIVATE(publicname_, privatename_) privatename_
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP(name_, id_, method_, ...) \
static_cast<UseCounter>(USE_COUNTER_FOR_CSS_PROPERTY_##method_),
#include "nsCSSPropList.h"
#undef CSS_PROP
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_PUBLIC_OR_PRIVATE
};
@ -2790,9 +2768,7 @@ const uint32_t
nsCSSProps::kParserVariantTable[eCSSProperty_COUNT_no_shorthands] = {
#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, ...) \
parsevariant_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
};

View File

@ -7183,9 +7183,7 @@ nsComputedDOMStyle::RegisterPrefChangeCallbacks()
}
#define CSS_PROP(prop_, id_, method_, flags_, pref_, ...) \
REGISTER_CALLBACK(pref_)
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#undef REGISTER_CALLBACK
}
@ -7200,9 +7198,7 @@ nsComputedDOMStyle::UnregisterPrefChangeCallbacks()
}
#define CSS_PROP(prop_, id_, method_, flags_, pref_, ...) \
UNREGISTER_CALLBACK(pref_)
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#undef UNREGISTER_CALLBACK
}

View File

@ -98,7 +98,6 @@ public:
}
#define CSS_PROP_LIST_EXCLUDE_INTERNAL
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#define CSS_PROP_SHORTHAND(name_, id_, method_, ...) CSS_PROP(name_, id_, method_, )
#include "nsCSSPropList.h"
@ -108,7 +107,6 @@ public:
#undef CSS_PROP_ALIAS
#undef CSS_PROP_SHORTHAND
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
#undef CSS_PROP
#undef CSS_PROP_PUBLIC_OR_PRIVATE

View File

@ -21,11 +21,9 @@ const PropertyInfo gLonghandProperties[] = {
#define CSS_PROP_PUBLIC_OR_PRIVATE(publicname_, privatename_) publicname_
#define CSS_PROP(name_, id_, method_, flags_, pref_, ...) \
{ #name_, #method_, pref_ },
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#undef CSS_PROP_PUBLIC_OR_PRIVATE
@ -40,11 +38,9 @@ const char* gLonghandPropertiesWithDOMProp[] = {
#define CSS_PROP_LIST_EXCLUDE_INTERNAL
#define CSS_PROP(name_, ...) #name_,
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#undef CSS_PROP_LIST_EXCLUDE_INTERNAL