servo/components/gfx
bors-servo 9c528c6382 Auto merge of #7161 - mbrubeck:underline, r=pcwalton
Snap rectangles to nearest pixels consistently.

Snapping the top-left and bottom-right corners separately can cause a rectangle to change size or even become empty when offset by a subpixel amount.  Instead, this patch snaps the top-left corner, then snaps the size to a whole pixel amount, so any rectangle of a given original size will always have the same snapped size.

Fixes #7152. r? @pcwalton or @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7161)
<!-- Reviewable:end -->
2015-08-11 11:31:32 -06:00
..
display_list layout: Implement basic overflow: scroll functionality. 2015-08-10 21:27:04 -07:00
platform gfx: Fix Core Text font instantiation for Web fonts on Mac. 2015-08-04 17:07:44 -07:00
text Warning police. 2015-08-04 15:16:15 +02:00
Cargo.toml servo: Update ipc-channel to pick up bincode support. 2015-08-08 09:43:53 -07:00
filters.rs Rename Au methods with f32/f64 instead of frac32/frac/subpx 2015-05-05 18:23:29 +02:00
font.rs Implement the unicode-bidi property 2015-08-03 14:12:33 -07:00
font_cache_task.rs Use atoms for font template structures. 2015-07-13 08:23:02 +10:00
font_context.rs gfx: Instantiate the CTFont corresponding to a Mac font on demand. 2015-07-31 08:42:30 -07:00
font_template.rs Use atoms for font template structures. 2015-07-13 08:23:02 +10:00
lib.rs Make Harfbuzz font_funcs static 2015-08-03 15:30:46 -07:00
paint_context.rs Snap rectangles to nearest pixels consistently. 2015-08-11 10:30:32 -07:00
paint_task.rs layout: Carry out some minor style cleanups. 2015-08-10 21:27:05 -07:00