diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 85d80fae1d4..33c5b7a532f 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -624,6 +624,7 @@ mod bindings { .whitelisted_function("Gecko_.*"); let structs_types = [ "mozilla::css::GridTemplateAreasValue", + "mozilla::css::ImageValue", "mozilla::css::URLValue", "mozilla::Side", "RawGeckoAnimationPropertySegment", @@ -764,6 +765,11 @@ 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