style: Update layer filling function call.

This commit is contained in:
Cameron McCormack 2017-11-21 12:25:14 +08:00
parent 00b3612fe9
commit f2bc28f358

View file

@ -4072,7 +4072,7 @@ fn static_assert() {
fill_fields += " mMaskMode mComposite" fill_fields += " mMaskMode mComposite"
%> %>
pub fn fill_arrays(&mut self) { pub fn fill_arrays(&mut self) {
use gecko_bindings::bindings::Gecko_FillAll${shorthand.title()}Lists; use gecko_bindings::bindings::Gecko_FillAllImageLayers;
use std::cmp; use std::cmp;
let mut max_len = 1; let mut max_len = 1;
% for member in fill_fields.split(): % for member in fill_fields.split():
@ -4081,7 +4081,7 @@ fn static_assert() {
unsafe { unsafe {
// While we could do this manually, we'd need to also manually // While we could do this manually, we'd need to also manually
// run all the copy constructors, so we just delegate to gecko // run all the copy constructors, so we just delegate to gecko
Gecko_FillAll${shorthand.title()}Lists(&mut self.gecko.${image_layers_field}, max_len); Gecko_FillAllImageLayers(&mut self.gecko.${image_layers_field}, max_len);
} }
} }
</%def> </%def>