mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
stylo: Export RefPtr<ImageValue> to stylo.
This commit is contained in:
parent
9c9bd17871
commit
7d1ef34698
2 changed files with 4 additions and 5 deletions
|
@ -777,11 +777,6 @@ mod bindings {
|
||||||
"RawGeckoServoStyleRuleList",
|
"RawGeckoServoStyleRuleList",
|
||||||
];
|
];
|
||||||
for &ty in structs_types.iter() {
|
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)
|
builder = builder.hide_type(ty)
|
||||||
.raw_line(format!("use gecko_bindings::structs::{};", ty));
|
.raw_line(format!("use gecko_bindings::structs::{};", ty));
|
||||||
// TODO this is hacky, figure out a better way to do it without
|
// TODO this is hacky, figure out a better way to do it without
|
||||||
|
|
|
@ -280,3 +280,7 @@ impl_threadsafe_refcount!(::gecko_bindings::structs::mozilla::css::URLValue,
|
||||||
impl_threadsafe_refcount!(::gecko_bindings::structs::mozilla::css::GridTemplateAreasValue,
|
impl_threadsafe_refcount!(::gecko_bindings::structs::mozilla::css::GridTemplateAreasValue,
|
||||||
Gecko_AddRefGridTemplateAreasValueArbitraryThread,
|
Gecko_AddRefGridTemplateAreasValueArbitraryThread,
|
||||||
Gecko_ReleaseGridTemplateAreasValueArbitraryThread);
|
Gecko_ReleaseGridTemplateAreasValueArbitraryThread);
|
||||||
|
impl_threadsafe_refcount!(::gecko_bindings::structs::ImageValue,
|
||||||
|
Gecko_AddRefImageValueArbitraryThread,
|
||||||
|
Gecko_ReleaseImageValueArbitraryThread);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue