gecko-dev/servo/components
Emilio Cobos Álvarez ad066f1df7 Bug 1536586 - Simplify a bit our generated bindings by getting rid of FooBorrowed and FooBorrowedMut. r=heycam
This reduces a lot the boilerplate that's needed in order to add simple binding
functions.

This starts using &Foo and Option<&Foo> instead, and as a result we need to
remove the servo_function_signatures test, which is a bit unfortunate.

I think it's worth though, this causes problems on some platforms (see bug
1534844), and messing up the functions signature is not something that I've ever
seen (other than bug 1308234, which already had all the FooBorrowed mess which
I'm removing).

Also, cbindgen understands references and Option<&Foo>, so it will be the way to
go in the future.

After this patch we can also remove HasSimpleFFI, but I've kept it for now since
I still use it in a few places, and this patch is quite big on its own.

Differential Revision: https://phabricator.services.mozilla.com/D24092

--HG--
extra : moz-landing-system : lando
2019-03-21 17:00:27 +00:00
..
fallible Bug 1511811 - Use https for the MPL license URL. 2018-12-03 08:43:48 -05:00
hashglobe Bug 1506391 - `cargo fix --edition`. r=emilio 2018-11-11 02:40:21 +01:00
malloc_size_of Bug 1521392 - Cherry-pick Servo-only changes to malloc_size_of. 2019-01-20 16:29:22 +01:00
selectors Bug 1534726 - Reformat recent style system changes. 2019-03-12 19:01:28 +01:00
servo_arc Bug 1506391 - `cargo fix --edition`. r=emilio 2018-11-11 02:40:21 +01:00
size_of_test Bug 1511811 - Use https for the MPL license URL. 2018-12-03 08:43:48 -05:00
style Bug 1536586 - Simplify a bit our generated bindings by getting rid of FooBorrowed and FooBorrowedMut. r=heycam 2019-03-21 17:00:27 +00:00
style_derive Bug 1534726 - Reformat recent style system changes. 2019-03-12 19:01:28 +01:00
style_traits Bug 1533201 - Make cssPropertySupportsType take an enum. r=heycam,rcaliman 2019-03-18 16:38:48 +00:00