servo/components/gfx
bors-servo 3b676bc85d Auto merge of #12783 - Wafflespeanut:word_spacing, r=Manishearth
Prefer length and percentage for word spacing

<!-- Please describe your changes on the following line: -->
The goal is to make use of `LengthOrPercentage` for word spacing in `ShapingOptions`, but since it makes use of `f32` which doesn't implement `Hash`, we're going for `NotNan<f32>` from [ordered-float](https://github.com/reem/rust-ordered-float/), which supports hashing. Instead of implementing `Hash` for `LengthOrPercentage` and thereby the inner types like `CSSFloat`, `CalcLengthOrPercentage`, etc., we convert it to `(Au, NotNan<f32>)`.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [ ] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/12783)
<!-- Reviewable:end -->
2016-08-09 10:13:30 -05:00
..
display_list Simplify and extend trans-stacking-context subpixel accumulation 2016-08-05 13:25:37 +02:00
platform Bail out gracefully on malformed kern table headers. 2016-07-06 08:16:37 -07:00
text Prefer length and percentage for word spacing 2016-08-09 17:53:40 +05:30
Cargo.toml Prefer length and percentage for word spacing 2016-08-09 17:53:40 +05:30
filters.rs Split Au type into separate crate, with minimal dependencies. 2015-10-01 07:16:11 +10:00
font.rs Prefer length and percentage for word spacing 2016-08-09 17:53:40 +05:30
font_cache_thread.rs Use expect calls to investigate #12540 and #12288 2016-08-08 16:53:34 +02:00
font_context.rs Remove the ComputedValue traits and style_struct_traits 2016-07-20 08:42:40 +02:00
font_template.rs gfx: Implement Debug for FontTemplate instances. 2016-05-10 10:34:29 -07:00
lib.rs Prefer length and percentage for word spacing 2016-08-09 17:53:40 +05:30
paint_context.rs Simplify and extend trans-stacking-context subpixel accumulation 2016-08-05 13:25:37 +02:00
paint_thread.rs Auto merge of #11850 - splav:box-shadow#11662, r=glennw 2016-07-27 18:54:32 -05:00