mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
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 --> |
||
---|---|---|
.. | ||
display_list | ||
platform | ||
text | ||
Cargo.toml | ||
filters.rs | ||
font.rs | ||
font_cache_task.rs | ||
font_context.rs | ||
font_template.rs | ||
lib.rs | ||
paint_context.rs | ||
paint_task.rs |