servo/components
Emilio Cobos Álvarez 248b2ac829
style: Generate top-level function and constant declarations for the style crate.
This needs https://github.com/eqrion/cbindgen/pull/362, but I expect it to be
uncontroversial. I'll add a patch to this bug when it's merged to update it.

cbindgen historically didn't include these, but it turns out to be pretty useful
to generate constants for the style crate (since the binding crate is
`servo/ports/geckolib`).

An alternative is to get a completely different cbindgen-generated header for
these, but that seems a bit wasteful. This generates the constants with the
Style prefix (so we'll get `StyleMAX_GRID_LINE` for example), which is very
ugly. But we probably want to eventually stop using the Style prefix and use a
namespace instead, plus it's trivial to do `auto kMaxLine = StyleMAX_GRID_LINE`,
for example, so it's probably not a huge deal.

Another alternative would be to use associated consts, which _are_ generated by
cbindgen. Something like:

```
struct GridConstants([u8; 0]);
impl GridConstants {
    const MAX_GRID_LINE: i32 = 10000;
}
```

Which would yield something like:

```
static const int32 StyleGridConstants_MAX_GRID_LINE = 10000;
```

I'm not sure if you find it preferrable, but I'm also happy to change it in a
follow-up to use this.

We need to fix a few manual C++ function signature definitions to match the C++
declaration.

Differential Revision: https://phabricator.services.mozilla.com/D35197
2019-07-08 12:43:19 +02:00
..
allocator
atoms atoms: Add some static atoms in code that is shared with gecko. 2019-05-29 16:14:33 +02:00
background_hang_monitor Fix some new warnings 2019-06-22 14:59:09 +02:00
bluetooth
bluetooth_traits
canvas Introduce WebrenderExternalImageRegistry 2019-07-04 10:26:48 +02:00
canvas_traits Media crate 2019-07-04 10:25:49 +02:00
compositing Support WebXR devices with main thread affinity 2019-07-05 14:02:49 -05:00
config Add media.glvideo preference 2019-07-04 10:25:47 +02:00
config_plugins
constellation Final tweaks: use expect and remove unnecessary crate attributes 2019-07-04 10:43:32 +02:00
debugger Upgrade ws. 2019-06-12 15:01:03 -04:00
deny_public_fields
derive_common Update darling to 0.9 2019-05-23 12:14:56 +02:00
devtools Upgrade headers, headers-core, and hyper_serde. 2019-06-13 11:08:16 -04:00
devtools_traits
dom_struct
domobject_derive
embedder_traits Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdm 2019-07-03 15:20:15 -04:00
fallible
geometry
gfx Remove default-except-unstable 2019-07-01 15:43:24 +02:00
gfx_traits
hashglobe Upgrade ws. 2019-06-12 15:01:03 -04:00
jstraceable_derive
layout Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
layout_2020 Add ./mach build --with-layout-2020 2019-07-04 18:16:44 +02:00
layout_thread Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
layout_thread_2020 Add ./mach build --with-layout-2020 2019-07-04 18:16:44 +02:00
layout_traits Fix some new warnings 2019-06-22 14:59:09 +02:00
malloc_size_of Fix some new warnings 2019-06-22 14:59:09 +02:00
media Final tweaks: use expect and remove unnecessary crate attributes 2019-07-04 10:43:32 +02:00
metrics
msg Update servo media to include global mute support 2019-07-05 11:01:19 +02:00
net Add PerformanceResourceTiming: domainLookupStart 2019-06-30 00:20:26 +02:00
net_traits Add PerformanceResourceTiming: domainLookupStart 2019-06-30 00:20:26 +02:00
pixels
profile #[global_allocator] is stable 2019-07-01 14:55:01 +02:00
profile_traits
rand Upgrade headers, headers-core, and hyper_serde. 2019-06-13 11:08:16 -04:00
range Remove unused code from a bunch of crates 2019-06-03 04:18:12 +02:00
remutex Remove unused code from a bunch of crates 2019-06-03 04:18:12 +02:00
script Auto merge of #23711 - saschanaz:frompoint, r=Manishearth 2019-07-05 15:01:31 -04:00
script_layout_interface Fix some new warnings 2019-06-22 14:59:09 +02:00
script_plugins Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03) 2019-07-05 16:53:02 +02:00
script_traits Media crate 2019-07-04 10:25:49 +02:00
selectors Rustfmt and fix tidy on recent changes. 2019-06-25 13:11:31 +02:00
servo Support WebXR devices with main thread affinity 2019-07-05 14:02:49 -05:00
servo_arc style: Generate top-level function and constant declarations for the style crate. 2019-07-08 12:43:19 +02:00
size_of_test
std_test_override
style style: Generate top-level function and constant declarations for the style crate. 2019-07-08 12:43:19 +02:00
style_derive Update darling to 0.9 2019-05-23 12:14:56 +02:00
style_traits Fix some new warnings 2019-06-22 14:59:09 +02:00
to_shmem style: Add an owned slice type which cbindgen can understand. 2019-05-10 12:43:02 +02:00
to_shmem_derive Update darling to 0.9 2019-05-23 12:14:56 +02:00
url
webdriver_server Auto merge of #23580 - georgeroman:implement_switch_to_window_and_dismiss_alert_wd_commands, r=jdm 2019-06-24 18:37:36 -04:00
webrender_traits Final tweaks: use expect and remove unnecessary crate attributes 2019-07-04 10:43:32 +02:00
webvr Update to latest xrtest api 2019-07-01 17:42:46 -07:00
webvr_traits Update to latest xrtest api 2019-07-01 17:42:46 -07:00