servo/components/style/values/generics
bors-servo c60dd53210 Auto merge of #18355 - servo:no-fmt, r=emilio
Reduce usage of fmt in serialization and error reporting

`format!` and `write!` create a somewhat-heavyweight `Formatting` struct and use dynamic dispatch to call into impls of `Dispaly` and related traits. The former also allocates an intermediate string that is sometimes unnecessary.

I started looking into this from https://bugzilla.mozilla.org/show_bug.cgi?id=1355599, but I expect the impact there will be small to insignificant. It might be a slightly less so on parsing (error reporting).

<!-- 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/18355)
<!-- Reviewable:end -->
2017-09-04 13:14:44 -05:00
..
background.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
basic_shape.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
border.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
box.rs Use generics for the vertical-align property 2017-08-30 23:01:12 +02:00
counters.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
effects.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
flex.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
gecko.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
grid.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
image.rs Properly set default direction of prefixed linear gradients 2017-08-30 21:17:39 -07:00
mod.rs Remove some uses of write! in components/style 2017-09-02 10:27:17 +02:00
position.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
rect.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
svg.rs Don't allow interpolating SVGPaintKind::None. 2017-09-04 16:33:40 +09:00
text.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
transform.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00