implements nsStyleCounterData type properties animatable

This commit is contained in:
Daisuke Akatsuka 2017-07-05 12:58:10 +09:00
parent a155a6341d
commit 6316b7aeb8
2 changed files with 13 additions and 2 deletions

View file

@ -4511,6 +4511,17 @@ clip-path
bindings::Gecko_CopyCounter${counter_property}sFrom(&mut self.gecko, &other.gecko)
}
}
pub fn clone_counter_${counter_property.lower()}(&self) -> longhands::counter_increment::computed_value::T {
use values::CustomIdent;
use gecko_string_cache::Atom;
longhands::counter_increment::computed_value::T(
self.gecko.m${counter_property}s.iter().map(|ref gecko_counter| {
(CustomIdent(Atom::from(gecko_counter.mCounter.to_string())), gecko_counter.mValue)
}).collect()
)
}
% endfor
</%self:impl_trait>