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 Make Servo components use winapi 0.3 2019-01-16 14:29:53 +01:00
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 #23065 removed unnecessary headless checking 2019-03-22 16:31:18 +03:00
bluetooth_traits Update regex to 1.1 2019-04-29 22:25:12 +09:00
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 #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
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 Update references to malloc_size_of_derive, which is in crates.io now. 2019-01-13 21:59:31 +01:00
dom_struct Can collect webidl paths. 2019-04-20 22:39:22 +02:00
domobject_derive
embedder_traits Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdm 2019-07-03 15:20:15 -04:00
fallible
geometry WR update: new viewport semantic 2019-03-22 15:41:48 +08:00
gfx Remove default-except-unstable 2019-07-01 15:43:24 +02:00
gfx_traits Fix deprecation warnings 2019-01-28 11:32:40 +01:00
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 Update references to malloc_size_of_derive, which is in crates.io now. 2019-01-13 21:59:31 +01:00
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 Update references to malloc_size_of_derive, which is in crates.io now. 2019-01-13 21:59:31 +01:00
profile #[global_allocator] is stable 2019-07-01 14:55:01 +02:00
profile_traits fixup! Measure layout queries blocked by ongoing layout 2019-04-17 17:23:17 +02:00
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 style: Fix servo build, and appease tidy / fmt. 2019-04-12 12:20:15 +02:00
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