diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index eacee6b3633..2db39701c5e 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -780,11 +780,6 @@ mod bindings { "RawGeckoServoStyleRuleList", ]; for &ty in structs_types.iter() { - // XXX cku: will be removed in Part 2. - if ty.starts_with("mozilla::css::ImageValue") { - builder = builder - .raw_line("#[allow(unused_imports)]"); - } builder = builder.hide_type(ty) .raw_line(format!("use gecko_bindings::structs::{};", ty)); // TODO this is hacky, figure out a better way to do it without diff --git a/components/style/gecko_bindings/sugar/refptr.rs b/components/style/gecko_bindings/sugar/refptr.rs index 2b3776e70fd..332fd3d857f 100644 --- a/components/style/gecko_bindings/sugar/refptr.rs +++ b/components/style/gecko_bindings/sugar/refptr.rs @@ -280,3 +280,7 @@ impl_threadsafe_refcount!(::gecko_bindings::structs::mozilla::css::URLValue, impl_threadsafe_refcount!(::gecko_bindings::structs::mozilla::css::GridTemplateAreasValue, Gecko_AddRefGridTemplateAreasValueArbitraryThread, Gecko_ReleaseGridTemplateAreasValueArbitraryThread); +impl_threadsafe_refcount!(::gecko_bindings::structs::ImageValue, + Gecko_AddRefImageValueArbitraryThread, + Gecko_ReleaseImageValueArbitraryThread); +