servo/components/style/values/generics
Emilio Cobos Álvarez 559235edad style: Use the owned slice type for basic shape polygon coordinates.
This enables destructors for tagged unions in cbindgen, implemented in:

 * https://github.com/eqrion/cbindgen/pull/333

Which allow us to properly generate a destructor for the cbindgen-generated
StyleBasicShape (which now contains an OwnedSlice).

For now, we still use the glue code to go from Box<BasicShape> to
UniquePtr<BasicShape>. But that will change in the future when we generate even
more stuff and remove all the glue.

I could add support for copy-constructor generation to cbindgen for tagged
enums, but I'm not sure if it'll end up being needed, and copy-constructing
unions in C++ is always very tricky.

Differential Revision: https://phabricator.services.mozilla.com/D29769
2019-05-10 12:43:03 +02:00
..
background.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
basic_shape.rs style: Use the owned slice type for basic shape polygon coordinates. 2019-05-10 12:43:03 +02:00
border.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
box.rs style: Use rust types for vertical-align. 2019-05-07 12:55:41 +02:00
color.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
column.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
counters.rs style: The counters code should use atoms rather than strings. 2019-05-07 12:55:22 +02:00
easing.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
effects.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
flex.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
font.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
gecko.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
grid.rs style: Fix servo build, and appease tidy / fmt. 2019-04-12 12:20:15 +02:00
image.rs style: Use rust types for gradient stops. 2019-05-07 12:55:39 +02:00
length.rs style: Use rust lengths for row-gap / column-gap. 2019-04-12 12:20:11 +02:00
mod.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
position.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
rect.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
size.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
svg.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
text.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
transform.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
ui.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
url.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00