mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Remove layout.css.conic-gradient.enabled preference.
Differential Revision: https://phabricator.services.mozilla.com/D98126
This commit is contained in:
parent
9f20a24e4c
commit
55e9d8c214
1 changed files with 4 additions and 16 deletions
|
@ -63,16 +63,6 @@ pub type PercentOrNone = generic::PercentOrNone<Percentage>;
|
||||||
|
|
||||||
type LengthPercentageItemList = crate::OwnedSlice<generic::GradientItem<Color, LengthPercentage>>;
|
type LengthPercentageItemList = crate::OwnedSlice<generic::GradientItem<Color, LengthPercentage>>;
|
||||||
|
|
||||||
#[cfg(feature = "gecko")]
|
|
||||||
fn conic_gradients_enabled() -> bool {
|
|
||||||
static_prefs::pref!("layout.css.conic-gradient.enabled")
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
|
||||||
fn conic_gradients_enabled() -> bool {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
fn cross_fade_enabled() -> bool {
|
fn cross_fade_enabled() -> bool {
|
||||||
static_prefs::pref!("layout.css.cross-fade.enabled")
|
static_prefs::pref!("layout.css.cross-fade.enabled")
|
||||||
|
@ -102,11 +92,9 @@ impl SpecifiedValueInfo for Gradient {
|
||||||
"-webkit-repeating-radial-gradient",
|
"-webkit-repeating-radial-gradient",
|
||||||
"-moz-repeating-radial-gradient",
|
"-moz-repeating-radial-gradient",
|
||||||
"-webkit-gradient",
|
"-webkit-gradient",
|
||||||
|
"conic-gradient",
|
||||||
|
"repeating-conic-gradient",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if conic_gradients_enabled() {
|
|
||||||
f(&["conic-gradient", "repeating-conic-gradient"]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,10 +327,10 @@ impl Parse for Gradient {
|
||||||
"-moz-repeating-radial-gradient" => {
|
"-moz-repeating-radial-gradient" => {
|
||||||
(Shape::Radial, true, GradientCompatMode::Moz)
|
(Shape::Radial, true, GradientCompatMode::Moz)
|
||||||
},
|
},
|
||||||
"conic-gradient" if conic_gradients_enabled() => {
|
"conic-gradient" => {
|
||||||
(Shape::Conic, false, GradientCompatMode::Modern)
|
(Shape::Conic, false, GradientCompatMode::Modern)
|
||||||
},
|
},
|
||||||
"repeating-conic-gradient" if conic_gradients_enabled() => {
|
"repeating-conic-gradient" => {
|
||||||
(Shape::Conic, true, GradientCompatMode::Modern)
|
(Shape::Conic, true, GradientCompatMode::Modern)
|
||||||
},
|
},
|
||||||
"-webkit-gradient" => {
|
"-webkit-gradient" => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue