File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
components/style/values/specified Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,21 @@ use style_traits::{ParseError, StyleParseErrorKind};
1616/// The specified value of `offset-path`.
1717pub 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+
1928impl 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
You can’t perform that action at this time.
0 commit comments