mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +01:00
Resync stylo bindings
Now at gecko-dev acf1cc9adeffe040dcdf7b7cf454cdd9657761e5
This commit is contained in:
parent
4e18c230d0
commit
c8bff6151e
9 changed files with 118 additions and 107 deletions
|
@ -194,7 +194,11 @@ def set_gecko_property(ffi_name, expr):
|
|||
// FIXME(bholley): Align binary representations and ditch |match| for cast + static_asserts
|
||||
let result = match v {
|
||||
% for value in keyword.values_for('gecko'):
|
||||
Keyword::${to_rust_ident(value)} => structs::${keyword.gecko_constant(value)} as u8,
|
||||
% if keyword.needs_cast():
|
||||
Keyword::${to_rust_ident(value)} => structs::${keyword.gecko_constant(value)} as u8,
|
||||
% else:
|
||||
Keyword::${to_rust_ident(value)} => structs::${keyword.gecko_constant(value)},
|
||||
% endif
|
||||
% endfor
|
||||
};
|
||||
${set_gecko_property(gecko_ffi_name, "result")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue