servo/components/style/values/generics
Boris Chiou 5e77ba9bf4 style: Support ray() in offset-path and make it animatable.
1. Add `generics::motion::OffsetPath`, and use specified `Angle` and
   computed `Angle` to define specified `OffsetPath` and computed `OffsetPath`.
2. Add `ray` function into `OffsetPath`.

We also tweak the degree from 150deg to 135deg in wpt (e.g.
offset-path-ray-001.html and others) to avoid floating point precision issues.
For example:
```
// offset-path: ray(150deg ...);
// offset-distance: 20px;
matrix:
{
  {0.500000 0.866025 0.000000 0.000000},
  {-0.866025 0.500000 0.000000 0.000000},
  {0.000000 0.000000 1.000000 0.000000},
  {10.000000 17.320509 0.000000 1.000000}
}

// rotate(60deg) translate(20px)
matrix:
{
  {0.500000 0.866025 0.000000 0.000000},
  {-0.866025 0.500000 0.000000 0.000000},
  {0.000000 0.000000 1.000000 0.000000},
  {10.000000 17.320507 0.000000 1.000000}
}
```
Their translate parts, 17.320509 vs 17.320507, are almost the same (only
tiny difference), which may cause the reftest failed.

Differential Revision: https://phabricator.services.mozilla.com/D42721
2019-10-09 13:21:35 +02:00
..
background.rs style: Fix the serialization of the computed value of background-size. 2019-06-25 13:11:31 +02:00
basic_shape.rs style: Should not serialize default radius of circle. 2019-06-25 13:11:30 +02:00
border.rs style: Use cbindgen for border-image-width. 2019-05-29 16:14:23 +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: Fix Servo build, and rustfmt recent changes. 2019-09-12 23:04:56 +02:00
easing.rs style: Use static_prefs::pref!. 2019-08-15 17:00:37 +02:00
effects.rs style: Update cbindgen. 2019-09-12 22:34:16 +02:00
flex.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
font.rs style: Fix Servo build, and rustfmt recent changes. 2019-09-12 23:04:56 +02:00
grid.rs style: Update cbindgen. 2019-09-12 22:34:16 +02:00
image.rs Rustfmt and fix tidy on recent changes. 2019-06-25 13:11:31 +02:00
length.rs Import victor's layout system 🍷 2019-09-11 10:36:30 +02:00
mod.rs style: Support ray() in offset-path and make it animatable. 2019-10-09 13:21:35 +02:00
motion.rs style: Support ray() in offset-path and make it animatable. 2019-10-09 13:21:35 +02:00
position.rs style: Make offset-anchor animatable. 2019-08-15 16:58:08 +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: Update cbindgen. 2019-09-12 22:34:16 +02:00
text.rs style: adding from-font support to text-underline-offset and text-decoration-thickness. 2019-08-15 17:02:01 +02:00
transform.rs style: Update cbindgen. 2019-09-12 22:34:16 +02:00
ui.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
url.rs style: Update cbindgen. 2019-09-12 22:34:16 +02:00