Resync stylo bindings

Now at gecko-dev acf1cc9adeffe040dcdf7b7cf454cdd9657761e5
This commit is contained in:
Manish Goregaokar 2016-07-26 12:18:20 +05:30
parent 4e18c230d0
commit c8bff6151e
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
9 changed files with 118 additions and 107 deletions

View file

@ -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")}