servo/components
bors-servo 8fd7dc80c4 Auto merge of #17340 - hinaria:master, r=jdm
windows: fix line height handling

hi there!

on windows, this change properly scales a font's line height by its size.

previously, line height was not scaled to the font's size at all, which meant line heights become worse and worse the further you scaled away from the font's design size (in either direction, larger or smaller).

this change makes the `line_gap` ratio and size scale with the font size. i've hand checked that the new computed `line_gap` matches the effective heights in chrome and firefox when `line-height = normal` for a bunch of system fonts. (servo's rendering quality on windows is a different story, though).

![demonstration](https://user-images.githubusercontent.com/975570/27185401-8e27023a-5228-11e7-8475-9e4223730d25.png)

i believe this also solves #16476.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- 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/17340)
<!-- Reviewable:end -->
2017-06-15 15:42:38 -07:00
..
atoms ID and class selectors are ASCII case-insensitive in quirks mode. 2017-06-12 23:33:53 +02:00
bluetooth
bluetooth_traits
canvas Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
canvas_traits Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
compositing Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
config Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
constellation Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
debugger
deny_public_fields
devtools Remove some usage of rust-encoding 2017-05-27 13:34:23 +02:00
devtools_traits Bump euclid to 0.13 and heapsize to 0.4 2017-06-05 19:28:39 +02:00
dom_struct
domobject_derive
geometry Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
gfx scale line gap by em size 2017-06-15 23:46:17 +10:00
gfx_traits Bump euclid to 0.13 and heapsize to 0.4 2017-06-05 19:28:39 +02:00
jstraceable_derive
layout Make computed types hold Percentage instead of bare CSSFloat 2017-06-15 16:59:03 +02:00
layout_thread Bump rayon to 0.8. 2017-06-14 18:52:05 -07:00
layout_traits Added a TopLevelBrowsingContextId type. 2017-05-22 09:27:07 -05:00
msg Remove cssparser dependency from msg. 2017-06-09 10:46:47 -04:00
net Update Rust nightly to 1.19.0-nightly (2416e222e 2017-06-09) 2017-06-09 11:12:42 +02:00
net_traits Added Debug implementations. 2017-06-13 10:46:59 -05:00
profile Conditionally define macro that's only used in Linux builds. 2017-05-29 14:52:44 -04:00
profile_traits Implemented Houdini worklets. 2017-05-17 09:01:05 -05:00
rand
range Bump euclid to 0.13 and heapsize to 0.4 2017-06-05 19:28:39 +02:00
remutex Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07) 2017-05-08 12:46:03 +02:00
script Auto merge of #17323 - ibmandura:issue16057, r=jdm 2017-06-15 12:36:19 -07:00
script_layout_interface Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
script_plugins Update Rust nightly to 1.19.0-nightly (2416e222e 2017-06-09) 2017-06-09 11:12:42 +02:00
script_traits Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
selectors Handle PseudoElement case in :active and :hover quirk 2017-06-13 17:22:39 +03:00
servo Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
servo_arc Introduce NonZeroPtrMut and use it in servo_arc. 2017-06-06 21:38:51 -07:00
size_of_test Add size_of_test crate 2017-05-16 10:12:51 +02:00
style Auto merge of #17338 - servo:derive-all-the-things, r=emilio,waffles 2017-06-15 13:37:04 -07:00
style_derive Introduce #[css(function)] for #[derive(ToCss)] 2017-06-13 10:19:23 +02:00
style_traits Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
url Bump euclid to 0.13 and heapsize to 0.4 2017-06-05 19:28:39 +02:00
webdriver_server Bump euclid to 0.14. 2017-06-14 16:00:59 +02:00
webvr Update WR (new groove/ridge border path, mix-blend-mode optimizations) 2017-04-26 14:34:07 +10:00
webvr_traits Update rust-webvr 2017-05-25 10:05:30 +02:00