diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-08-09 10:13:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-09 10:13:30 -0500 |
commit | 3b676bc85dc66ed0e80756204f347bf1842b01a0 (patch) | |
tree | c9d412b02f04987d53221a110a39c37a542fd1f9 /components/style/servo_selector_impl.rs | |
parent | 44ebbfc20de186f66eb39f6c076b369ed4e3c8ed (diff) | |
parent | a04028eede04654ac020119043b853e77cae5307 (diff) | |
download | servo-3b676bc85dc66ed0e80756204f347bf1842b01a0.tar.gz servo-3b676bc85dc66ed0e80756204f347bf1842b01a0.zip |
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 -->
Diffstat (limited to 'components/style/servo_selector_impl.rs')
0 files changed, 0 insertions, 0 deletions