stylo: Export mozilla::css::ImageValue to stylo.

This commit is contained in:
cku 2017-05-08 15:45:31 +08:00
parent 4e390e2630
commit ba8e33a30c

View file

@ -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