Don't pref-gate properties in geckolib mode

This commit is contained in:
Manish Goregaokar 2016-10-10 17:55:59 +05:30
parent 9812034b96
commit 3772b4881b
3 changed files with 5 additions and 4 deletions

View file

@ -767,7 +767,7 @@ impl PropertyDeclaration {
return PropertyDeclarationParseResult::UnknownProperty
}
% endif
% if property.experimental:
% if property.experimental and product == "servo":
if !::util::prefs::PREFS.get("${property.experimental}")
.as_boolean().unwrap_or(false) {
return PropertyDeclarationParseResult::ExperimentalProperty
@ -797,7 +797,7 @@ impl PropertyDeclaration {
return PropertyDeclarationParseResult::UnknownProperty
}
% endif
% if shorthand.experimental:
% if shorthand.experimental and product == "servo":
if !::util::prefs::PREFS.get("${shorthand.experimental}")
.as_boolean().unwrap_or(false) {
return PropertyDeclarationParseResult::ExperimentalProperty