servo/components/style/values/computed
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
..
align.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
angle.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
background.rs style: Use rust types for background-size. 2019-02-23 21:02:46 -08: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: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
box.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
color.rs style: Remove the last usage of lossy currentcolor. 2019-04-12 12:20:02 +02:00
column.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
counters.rs style: Implement the counter-set property. 2019-03-27 14:29:21 +01:00
easing.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
effects.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
flex.rs style: Use Rust sizes for flex-basis, width, height, and their min/max properties. 2019-02-23 21:02:18 -08:00
font.rs style: Fix servo build, and appease tidy / fmt. 2019-04-12 12:20:15 +02:00
gecko.rs style: Rename LengthOrPercentage to LengthPercentage. 2019-01-08 12:00:48 +01:00
image.rs style: Use rust types for gradient stops. 2019-05-07 12:55:39 +02:00
length.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
list.rs style: Add an inherited internal UA sheet property (-moz-list-reversed:true|false) to propagate <ol reversed> to its relevant descendants. 2019-03-27 14:29:22 +01:00
mod.rs style: Add an owned slice type which cbindgen can understand. 2019-05-10 12:43:02 +02:00
motion.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
outline.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
percentage.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
position.rs style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
rect.rs style: Use Rust types for some misc properties. 2019-02-23 21:04:33 -08:00
resolution.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
svg.rs style: Reformat recent changes. 2019-03-13 15:08:38 +01:00
table.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
text.rs style: Rustfmt recent changes. 2019-05-07 12:56:02 +02:00
time.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
transform.rs style: Reformat recent changes. 2019-03-13 15:08:38 +01:00
ui.rs style: Use the rust color representation. 2019-04-12 12:19:59 +02:00
url.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00