diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index bb6b0b7af91..832aa8114dd 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -32,7 +32,7 @@ use gecko_bindings::bindings::Gecko_FontFamilyList_AppendGeneric; use gecko_bindings::bindings::Gecko_FontFamilyList_AppendNamed; use gecko_bindings::bindings::Gecko_FontFamilyList_Clear; use gecko_bindings::bindings::Gecko_SetCursorArrayLength; -use gecko_bindings::bindings::Gecko_SetCursorImage; +use gecko_bindings::bindings::Gecko_SetCursorImageValue; use gecko_bindings::bindings::Gecko_StyleTransition_SetUnsupportedProperty; use gecko_bindings::bindings::Gecko_NewCSSShadowArray; use gecko_bindings::bindings::Gecko_nsStyleFont_SetLang; @@ -3995,10 +3995,11 @@ clip-path Gecko_SetCursorArrayLength(&mut self.gecko, v.images.len()); } for i in 0..v.images.len() { - let image = &v.images[i]; unsafe { - Gecko_SetCursorImage(&mut self.gecko.mCursorImages[i], image.url.for_ffi()); + Gecko_SetCursorImageValue(&mut self.gecko.mCursorImages[i], + v.images[i].url.clone().image_value.unwrap().get()); } + // We don't need to record this struct as uncacheable, like when setting // background-image to a url() value, since only properties in reset structs // are re-used from the applicable declaration cache, and the Pointing struct diff --git a/components/style/properties/longhand/pointing.mako.rs b/components/style/properties/longhand/pointing.mako.rs index b15d5cfce5c..77edc71e000 100644 --- a/components/style/properties/longhand/pointing.mako.rs +++ b/components/style/properties/longhand/pointing.mako.rs @@ -131,7 +131,10 @@ let mut images = vec![]; loop { match input.try(|input| parse_image(context, input)) { - Ok(image) => images.push(image), + Ok(mut image) => { + image.url.build_image_value(); + images.push(image) + } Err(()) => break, } try!(input.expect_comma());