Use CustomIdent in counter-increment

This commit is contained in:
Simon Sapin 2017-04-14 05:53:37 +02:00
parent d9c2d1a9fb
commit 627c823d0a
3 changed files with 26 additions and 29 deletions

View file

@ -4012,9 +4012,9 @@ clip-path
unsafe {
bindings::Gecko_ClearAndResizeCounter${counter_property}s(&mut self.gecko,
v.0.len() as u32);
for (i, item) in v.0.into_iter().enumerate() {
self.gecko.m${counter_property}s[i].mCounter.assign_utf8(&item.0);
self.gecko.m${counter_property}s[i].mValue = item.1;
for (i, (name, value)) in v.0.into_iter().enumerate() {
self.gecko.m${counter_property}s[i].mCounter.assign(name.0.as_slice());
self.gecko.m${counter_property}s[i].mValue = value;
}
}
}