forked from mirrors/gecko-dev
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:
parent
72849955db
commit
df34135583
2 changed files with 1 additions and 13 deletions
|
|
@ -39,12 +39,7 @@ def generate(output, idlFilename, dataFile):
|
||||||
]
|
]
|
||||||
|
|
||||||
if p.pref != "":
|
if p.pref != "":
|
||||||
# BackdropFilter is a special case where we want WebIDL to check
|
extendedAttrs.append('Pref="%s"' % p.pref)
|
||||||
# a function instead of checking the pref directly.
|
|
||||||
if p.method == "BackdropFilter":
|
|
||||||
extendedAttrs.append('Func="nsCSSProps::IsBackdropFilterAvailable"')
|
|
||||||
else:
|
|
||||||
extendedAttrs.append('Pref="%s"' % p.pref)
|
|
||||||
|
|
||||||
prop = p.method
|
prop = p.method
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,13 +124,6 @@ class nsCSSProps {
|
||||||
kSubpropertyTable[eCSSProperty_COUNT - eCSSProperty_COUNT_no_shorthands];
|
kSubpropertyTable[eCSSProperty_COUNT - eCSSProperty_COUNT_no_shorthands];
|
||||||
|
|
||||||
public:
|
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,
|
* Recoumputes the enabled state of a pref. If aPrefName is nullptr,
|
||||||
* recomputes the state of all prefs in gPropertyEnabled.
|
* recomputes the state of all prefs in gPropertyEnabled.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue