servo/components/style/values/computed
bors-servo 3fa5d83ab7 Auto merge of #18234 - BorisChiou:stylo/transform/distance_mismatch, r=birtles,nox
stylo: Bug 1390039 - Implement compute_distance for mismatched transform lists.

Implement ComputeSquaredDistance for mismatched transform lists.
In order to do this, we have to convert a transform list into a 3d matrix,
so I move the code from layout module into style module for reusing it.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1390039](https://bugzilla.mozilla.org/show_bug.cgi?id=1390039).
- [X] These changes do not require tests because this is a Gecko feature and I add many tests in Gecko already.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18234)
<!-- Reviewable:end -->
2017-08-30 06:03:32 -05:00
..
align.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
angle.rs Auto merge of #18234 - BorisChiou:stylo/transform/distance_mismatch, r=birtles,nox 2017-08-30 06:03:32 -05:00
background.rs Derive Animate for BackgroundSize<L> 2017-08-28 12:26:38 +02:00
basic_shape.rs Introduce ComputedUrl 2017-08-09 13:55:39 +02:00
border.rs Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10) 2017-08-15 14:10:44 +02:00
color.rs Introduce style::values::animated::color 2017-08-14 01:25:02 +02:00
effects.rs Use Option<RGBA> for color in shadow 2017-08-19 00:20:24 +10:00
flex.rs Rename LengthOrPercentageOrAutoOrContent to FlexBasis 2017-06-17 13:46:35 +02:00
gecko.rs Use generics for scroll-snap-points-* 2017-06-06 19:27:43 +02:00
image.rs Implement #[compute(clone)] for #[derive(ToComputedValue)] 2017-08-28 10:39:53 +02:00
length.rs Auto merge of #18239 - servo:derive-all-the-things, r=emilio 2017-08-28 10:13:13 -05:00
mod.rs Auto merge of #18239 - servo:derive-all-the-things, r=emilio 2017-08-28 10:13:13 -05:00
percentage.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
position.rs style: Respect calc for percentages. 2017-07-14 13:43:27 +02:00
rect.rs Introduce style::values::generics::rect ▭ 2017-05-23 10:59:57 +02:00
svg.rs Add SVGLengthOrPercentageOrNumber for stroke-*. 2017-08-18 10:28:11 +09:00
text.rs Derive the most trivial Animate impls 2017-08-22 19:12:47 +02:00
time.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
transform.rs Use DirectionVector as an alias of euclid::Vector3D<f32>. 2017-08-25 18:25:15 +08:00