servo/components/style/values
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
..
animated style: Prevent Animate to generate NaN float values. 2017-08-29 11:57:50 +02:00
computed Auto merge of #18234 - BorisChiou:stylo/transform/distance_mismatch, r=birtles,nox 2017-08-30 06:03:32 -05:00
generics style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
specified style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
distance.rs Document how style traits can be derived 2017-08-28 12:26:43 +02:00
mod.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00