style: Change URL value storage in StyleShapeSource.
draft
style: Change URL value storage in StyleShapeSource.
This is due to
Bug 1404243 Part 4.
MozReview-Commit-ID: CFRCdw2Dayy
--- a/servo/components/style/gecko/conversions.rs
+++ b/servo/components/style/gecko/conversions.rs
@@ -612,17 +612,18 @@ pub mod basic_shape {
ReferenceBox: From<StyleGeometryBox>,
{
fn from(other: &'a StyleShapeSource) -> Self {
match other.mType {
StyleShapeSourceType::None => ShapeSource::None,
StyleShapeSourceType::Box => ShapeSource::Box(other.mReferenceBox.into()),
StyleShapeSourceType::URL => {
unsafe {
- let other_url = &(**other.__bindgen_anon_1.mURL.as_ref());
+ let shape_image = &*other.mShapeImage.mPtr;
+ let other_url = &(**shape_image.__bindgen_anon_1.mURLValue.as_ref());
let url = SpecifiedUrl::from_url_value_data(&other_url._base).unwrap();
ShapeSource::Url(url)
}
},
StyleShapeSourceType::Shape => {
let other_shape = unsafe { &*other.mBasicShape.mPtr };
let shape = other_shape.into();
let reference_box = if other.mReferenceBox == StyleGeometryBox::NoBox {