mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
stylo: Export mozilla::css::ImageValue to stylo.
This commit is contained in:
parent
4e390e2630
commit
ba8e33a30c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue