mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
style: Update layer filling function call.
This commit is contained in:
parent
00b3612fe9
commit
f2bc28f358
1 changed files with 2 additions and 2 deletions
|
@ -4072,7 +4072,7 @@ fn static_assert() {
|
|||
fill_fields += " mMaskMode mComposite"
|
||||
%>
|
||||
pub fn fill_arrays(&mut self) {
|
||||
use gecko_bindings::bindings::Gecko_FillAll${shorthand.title()}Lists;
|
||||
use gecko_bindings::bindings::Gecko_FillAllImageLayers;
|
||||
use std::cmp;
|
||||
let mut max_len = 1;
|
||||
% for member in fill_fields.split():
|
||||
|
@ -4081,7 +4081,7 @@ fn static_assert() {
|
|||
unsafe {
|
||||
// While we could do this manually, we'd need to also manually
|
||||
// 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue