Bug 1738663 - Remove unneeded special-case for backdrop-filter in GenerateCSS2PropertiesWebIDL. r=layout-reviewers,mats

This was needed when backdrop-filter-enabledness depended on
WebRender-enabledness, but now it's available everywhere.

Depends on D130027

Differential Revision: https://phabricator.services.mozilla.com/D130028
This commit is contained in:
Emilio Cobos Álvarez 2021-11-02 14:22:08 +00:00
parent 72849955db
commit df34135583
2 changed files with 1 additions and 13 deletions

View file

@ -39,12 +39,7 @@ def generate(output, idlFilename, dataFile):
]
if p.pref != "":
# BackdropFilter is a special case where we want WebIDL to check
# a function instead of checking the pref directly.
if p.method == "BackdropFilter":
extendedAttrs.append('Func="nsCSSProps::IsBackdropFilterAvailable"')
else:
extendedAttrs.append('Pref="%s"' % p.pref)
extendedAttrs.append('Pref="%s"' % p.pref)
prop = p.method

View file

@ -124,13 +124,6 @@ class nsCSSProps {
kSubpropertyTable[eCSSProperty_COUNT - eCSSProperty_COUNT_no_shorthands];
public:
/**
* Returns true if the backdrop-filter pref and WebRender are enabled.
*/
static bool IsBackdropFilterAvailable(JSContext*, JSObject*) {
return IsEnabled(eCSSProperty_backdrop_filter);
}
/**
* Recoumputes the enabled state of a pref. If aPrefName is nullptr,
* recomputes the state of all prefs in gPropertyEnabled.