mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
Bug 1420383 - Move nsCSSProps::kParserVariantTable into its rightful home in nsCSSProps.cpp. r=xidorn
MozReview-Commit-ID: 7Rg3EYq5GPQ --HG-- extra : rebase_source : a3bb2bc6fa9f04c72104dc942316f14fd83ed636
This commit is contained in:
parent
8fd84b7a9d
commit
8839daefd6
@ -71,17 +71,6 @@ using namespace mozilla::css;
|
||||
|
||||
typedef nsCSSProps::KTableEntry KTableEntry;
|
||||
|
||||
const uint32_t
|
||||
nsCSSProps::kParserVariantTable[eCSSProperty_COUNT_no_shorthands] = {
|
||||
#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, \
|
||||
stylestruct_, stylestructoffset_, animtype_) \
|
||||
parsevariant_,
|
||||
#define CSS_PROP_LIST_INCLUDE_LOGICAL
|
||||
#include "nsCSSPropList.h"
|
||||
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
|
||||
#undef CSS_PROP
|
||||
};
|
||||
|
||||
// Maximum number of repetitions for the repeat() function
|
||||
// in the grid-template-rows and grid-template-columns properties,
|
||||
// to limit high memory usage from small stylesheets.
|
||||
|
@ -3377,6 +3377,17 @@ nsCSSProps::gPropertyUseCounter[eCSSProperty_COUNT_no_shorthands] = {
|
||||
#undef CSS_PROP_PUBLIC_OR_PRIVATE
|
||||
};
|
||||
|
||||
const uint32_t
|
||||
nsCSSProps::kParserVariantTable[eCSSProperty_COUNT_no_shorthands] = {
|
||||
#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, \
|
||||
stylestruct_, stylestructoffset_, animtype_) \
|
||||
parsevariant_,
|
||||
#define CSS_PROP_LIST_INCLUDE_LOGICAL
|
||||
#include "nsCSSPropList.h"
|
||||
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
|
||||
#undef CSS_PROP
|
||||
};
|
||||
|
||||
// Check that all logical property flags are used appropriately.
|
||||
#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, \
|
||||
kwtable_, stylestruct_, stylestructoffset_, animtype_) \
|
||||
|
@ -495,7 +495,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
// Lives in nsCSSParser.cpp for the macros it depends on.
|
||||
static const uint32_t kParserVariantTable[eCSSProperty_COUNT_no_shorthands];
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user