diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index b86f18534cf..bb6b0b7af91 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -4160,8 +4160,11 @@ clip-path // When we support values for list-style-type this will need to be updated array[2].set_atom_ident(style.to_css_string().into()); } - ContentItem::Url(url) => { - unsafe { bindings::Gecko_SetContentDataImage(&mut self.gecko.mContents[i], url.for_ffi()) } + ContentItem::Url(ref url) => { + unsafe { + bindings::Gecko_SetContentDataImageValue(&mut self.gecko.mContents[i], + url.image_value.clone().unwrap().get()) + } } } } diff --git a/components/style/properties/longhand/counters.mako.rs b/components/style/properties/longhand/counters.mako.rs index e9e23d54dc0..054746bdc7a 100644 --- a/components/style/properties/longhand/counters.mako.rs +++ b/components/style/properties/longhand/counters.mako.rs @@ -148,7 +148,8 @@ let mut content = vec![]; loop { % if product == "gecko": - if let Ok(url) = input.try(|i| SpecifiedUrl::parse(context, i)) { + if let Ok(mut url) = input.try(|i| SpecifiedUrl::parse(context, i)) { + url.build_image_value(); content.push(ContentItem::Url(url)); continue; }