Bug 1341703 - Part 1. Make sure that the URL stylo parse for border-image-source is propagated to Gecko computed style.
MozReview-Commit-ID: LWFsQzVg46z
--- a/servo/components/style/properties/gecko.mako.rs
+++ b/servo/components/style/properties/gecko.mako.rs
@@ -908,19 +908,17 @@ fn static_assert() {
pub fn set_border_image_source(&mut self, v: longhands::border_image_source::computed_value::T) {
unsafe {
// Prevent leaking of the last elements we did set
Gecko_SetNullImageValue(&mut self.gecko.mBorderImageSource);
}
if let Some(image) = v.0 {
- // TODO: We need to make border-image-source match with background-image
- // until then we are setting with_url to false
- self.gecko.mBorderImageSource.set(image, false, &mut false)
+ self.gecko.mBorderImageSource.set(image, true, &mut false)
}
}
pub fn copy_border_image_source_from(&mut self, other: &Self) {
unsafe {
Gecko_CopyImageValueFrom(&mut self.gecko.mBorderImageSource,
&other.gecko.mBorderImageSource);
}