Skip to content

Commit 393ddb5

Browse files
committed
Further changes required by Servo
1 parent a5ebc29 commit 393ddb5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

components/style/values/specified/motion.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,21 @@ use style_traits::{ParseError, StyleParseErrorKind};
1616
/// The specified value of `offset-path`.
1717
pub type OffsetPath = GenericOffsetPath<Angle>;
1818

19+
#[cfg(feature = "gecko")]
20+
fn is_ray_enabled() -> bool {
21+
static_prefs::pref!("layout.css.motion-path-ray.enabled")
22+
}
23+
#[cfg(feature = "servo")]
24+
fn is_ray_enabled() -> bool {
25+
false
26+
}
27+
1928
impl Parse for RayFunction<Angle> {
2029
fn parse<'i, 't>(
2130
context: &ParserContext,
2231
input: &mut Parser<'i, 't>,
2332
) -> Result<Self, ParseError<'i>> {
24-
if !static_prefs::pref!("layout.css.motion-path-ray.enabled") {
33+
if !is_ray_enabled() {
2534
return Err(input.new_custom_error(StyleParseErrorKind::UnspecifiedError));
2635
}
2736

0 commit comments

Comments
 (0)