From ba8e33a30c4048f3f1b715841258229566b0bc91 Mon Sep 17 00:00:00 2001 From: cku Date: Mon, 8 May 2017 15:45:31 +0800 Subject: [PATCH] stylo: Export mozilla::css::ImageValue to stylo. --- components/style/build_gecko.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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