servo/components/style/values/specified
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
..
align.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
angle.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
background.rs Update cssparser to 0.18 2017-07-24 11:39:12 +02:00
basic_shape.rs Introduce ComputedUrl 2017-08-09 13:55:39 +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
calc.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
color.rs style: Move color to use predefined_type. 2017-09-04 11:43:50 +02:00
effects.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
flex.rs Rename LengthOrPercentageOrAutoOrContent to FlexBasis 2017-06-17 13:46:35 +02:00
gecko.rs Thread ParseError return values through CSS parsing. 2017-06-09 16:46:25 -04: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
length.rs Remove some uses of write! in components/style 2017-09-02 10:27:17 +02:00
mod.rs style: Move color to use predefined_type. 2017-09-04 11:43:50 +02:00
percentage.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
position.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
rect.rs Move specified and computed percentages to submodules 2017-08-14 02:47:43 +02:00
svg.rs style: Remove HasViewportPercentage. 2017-08-29 23:51:21 +02:00
text.rs stylo: Compute font-size calcs against appropriate base size 2017-08-31 17:22:17 -07:00
time.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