diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-09 08:15:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 08:15:16 -0600 |
commit | 35f328d7174c93bb6ef5913a206496779fb8d3bf (patch) | |
tree | 03b0ccc27588ea916c5b173f5b1b0e6c3324cc39 /components/script | |
parent | 99f125721017e0f46a5b01b8771245395b7cb880 (diff) | |
parent | c4fc49c55908f62b3a63ab72da492db9017d1aff (diff) | |
download | servo-35f328d7174c93bb6ef5913a206496779fb8d3bf.tar.gz servo-35f328d7174c93bb6ef5913a206496779fb8d3bf.zip |
Auto merge of #14049 - Wafflespeanut:lon, r=SimonSapin
Add a generic type for sharing some CSS types
<!-- Please describe your changes on the following line: -->
This would be useful for types such as `T(pub Option<U>)` or any type that's a mixture of two types (like `LengthOrFoo` for example). Well, it's a bit ugly, especially because we have to address the types as `Either::First` and `Either::Second` everywhere, but I don't have a brighter idea :smile:
---
<!-- 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: -->
- [x] These changes do not require tests because it's a refactor
r? @SimonSapin (cc @Manishearth @emilio)
<!-- 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/14049)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script')
0 files changed, 0 insertions, 0 deletions