servo/components/style/gecko
bors-servo cd0a6b98f4 Auto merge of #15115 - Wafflespeanut:lop, r=emilio
Introduce the `NoCalcLength`

<!-- Please describe your changes on the following line: -->

I began this for making the `CalcLengthOrPercentage` represent `LengthOrPercentage` (instead of the enum we already have), but only later did I realize that it will make `LengthOrPercentageOrFoo` types fatty (which is the problem we're trying to avoid - #15061) and so, I dropped that attempt. Along the way, I introduced an internal type for `Length`, for representing all its non-calc variants (which are `Copy`). We could still have this type for the `LengthOrPercentageOrFoo` types which don't really need  `Length` since they already have their own variants for calc.

r? @Manishearth @emilio @SimonSapin or anyone interested

---
<!-- 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

<!-- 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/15115)
<!-- Reviewable:end -->
2017-01-28 14:08:38 -08:00
..
generated Move most of geckolib into style::gecko 2016-09-26 09:07:17 +02:00
conversions.rs style: Document Gecko conversions module. 2017-01-02 12:58:03 +01:00
data.rs Bug 1332969: stylo: Synchronously do a style update when the device changes. 2017-01-23 18:55:45 +01:00
media_queries.rs Change LengthOrPercentage to make use of NoCalcLength 2017-01-29 02:30:25 +05:30
mod.rs Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness manually in the per-doc data. r=heycam 2017-01-17 14:05:23 +01:00
non_ts_pseudo_class_list.rs Put stylo's pseudo-class into a list file 2017-01-24 10:17:57 +11:00
restyle_damage.rs style: Document Gecko's restyle-damage code. 2017-01-02 12:58:05 +01:00
selector_parser.rs Put stylo's pseudo-class into a list file 2017-01-24 10:17:57 +11:00
snapshot.rs style: Document Gecko's snapshot code. 2017-01-02 12:58:05 +01:00
snapshot_helpers.rs style: Document Gecko's snapshot code. 2017-01-02 12:58:05 +01:00
traversal.rs style: Expose the traversal kind to the style system. 2017-01-24 08:41:29 +01:00
values.rs style: Document the remaining public parts of Gecko's values module. 2017-01-02 12:58:06 +01:00
wrapper.rs Bug 1317209 - Part 5: Support transition cascade level. r=emilio 2017-01-24 18:44:07 +08:00