mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Implement strokeRect with zero-width or zero-height rects
This commit is contained in:
parent
447c991ebb
commit
9fbe33b6f2
6 changed files with 23 additions and 9 deletions
|
@ -706,7 +706,7 @@ impl<'a> PaintContext<'a> {
|
|||
|
||||
self.draw_target.stroke_line(start,
|
||||
end,
|
||||
&ColorPattern::new(color),
|
||||
PatternRef::Color(&ColorPattern::new(color)),
|
||||
&stroke_opts,
|
||||
&draw_opts);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue