servo/tests
bors-servo a70af60eec Auto merge of #15063 - Wafflespeanut:calc, r=heycam
Cleaning up CalcLengthOrPercentage

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

We don't really need enum variants in `CalcLengthOrPercentage`. Given that we already have the information (whether it's `vw`, `ch`, etc.) in the struct fields, we could just store `Option<CSSFloat>` there, and modify our `ToCss` implementation a bit.

cc #15061

r? @Manishearth 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/15063)
<!-- Reviewable:end -->
2017-01-17 02:18:15 -08:00
..
compiletest Make the dom module private. 2016-12-22 16:06:23 +01:00
dromaeo Avoid Python's HTTP server automatic redirect that appends / after the query string. Fixes #11843. 2016-06-23 18:49:19 -04:00
heartbeats Update profiler logging with current ProfilerCategory enum values 2016-11-17 19:36:58 -08:00
html WebVR API Implementation, r=larsbergstrom 2017-01-09 12:44:39 +01:00
jquery
power
unit Update regex. 2017-01-16 13:11:16 +01:00
wpt Auto merge of #15063 - Wafflespeanut:calc, r=heycam 2017-01-17 02:18:15 -08:00