servo/components/gfx
bors-servo 4d1be2f56c Auto merge of #7703 - bjwbell:bugfix-0px-and-non-0px-border-widths, r=pcwalton
gfx: Fix border-radius panic when a corner has 0px and >0px borders

When one border is 0px and the other is >0px then the border corner
drawing code panics when computing the values to use in drawing the
border corner arcs.

This fixes that bug and makes the `draw_corner` function more robust
by explicitly passing an enum, `BorderCorner`, naming which corner is
being drawn e.g. `BorderCorner::TL`.

Add a ref test,
`border_radius_zero_sizes_a.html/border_radius_zero_sizes_ref.html`.

Fixes https://github.com/servo/servo/issues/7700.

r? @pcwalton or @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7703)
<!-- Reviewable:end -->
2015-09-24 18:18:07 -06:00
..
display_list Auto merge of #7710 - mrobinson:small-dl-refactor, r=pcwalton 2015-09-23 17:22:31 -06:00
platform sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
text sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
Cargo.toml Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev. 2015-09-23 14:44:59 +02:00
filters.rs Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00
font.rs sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
font_cache_task.rs sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
font_context.rs Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00
font_template.rs Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00
lib.rs sorted the extern crate, mod & use declarations 2015-09-24 02:12:45 +05:30
paint_context.rs Auto merge of #7703 - bjwbell:bugfix-0px-and-non-0px-border-widths, r=pcwalton 2015-09-24 18:18:07 -06:00
paint_task.rs Auto merge of #7710 - mrobinson:small-dl-refactor, r=pcwalton 2015-09-23 17:22:31 -06:00