Bug 1670778 - Enable all CSS properties unconditionally in fuzzing builds. r=boris

Differential Revision: https://phabricator.services.mozilla.com/D93259
This commit is contained in:
Emilio Cobos Álvarez 2020-10-12 22:58:47 +00:00
parent 1a7a9739e4
commit 65147da6a4

View File

@ -72,7 +72,11 @@ void nsCSSProps::RecomputeEnabledState(const char* aPref, void*) {
pref->mPropID != eCSSProperty_UNKNOWN; pref++) {
if (!aPref || !strcmp(aPref, pref->mPref)) {
foundPref = true;
#ifdef FUZZING
gPropertyEnabled[pref->mPropID] = true;
#else
gPropertyEnabled[pref->mPropID] = Preferences::GetBool(pref->mPref);
#endif
if (pref->mPropID == eCSSProperty_backdrop_filter) {
gPropertyEnabled[pref->mPropID] &=
gfx::gfxVars::GetUseWebRenderOrDefault();
@ -120,8 +124,6 @@ void nsCSSProps::AddRefTable(void) {
}
}
#undef DEBUG_SHORTHANDS_CONTAINING
void nsCSSProps::ReleaseTable(void) {
if (0 == --gPropertyTableRefCount) {
delete gFontDescTable;