Skip to content

Commit 4905333

Browse files
committed
Further changes required by Servo
1 parent b5c25dc commit 4905333

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

components/style/values/specified/effects.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,10 @@ impl Filter {
297297
Err(())
298298
}
299299
},
300-
Filter::Url(ref url) => {
301-
if cfg!(feature = "gecko") {
302-
Ok(ComputedFilter::Url(ComputedUrl(url.clone())))
303-
} else {
304-
Err(())
305-
}
306-
},
300+
#[cfg(feature = "gecko")]
301+
Filter::Url(ref url) => Ok(ComputedFilter::Url(ComputedUrl(url.clone()))),
302+
#[cfg(feature = "servo")]
303+
Filter::Url(_) => Err(()),
307304
}
308305
}
309306
}

0 commit comments

Comments
 (0)