style: Change URL value storage in StyleShapeSource.

This is due to Bug 1404243 Part 4.

MozReview-Commit-ID: CFRCdw2Dayy
This commit is contained in:
Ting-Yu Lin 2017-09-29 16:39:46 +08:00 committed by Ting-Yu Lin
parent 3547a59e28
commit db6acc7de4

View file

@ -617,7 +617,8 @@ pub mod basic_shape {
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)
}